|
@ -140,7 +140,7 @@ def gen_resitele(rnd, osoby, skoly): |
|
|
x += 1 |
|
|
x += 1 |
|
|
os.user = user |
|
|
os.user = user |
|
|
os.save() |
|
|
os.save() |
|
|
os.user.user_permissions.add(resitel_perm) |
|
|
os.user.user_permissions.add(resitel_perm) |
|
|
resitele.append(Resitel.objects.create(osoba=os, skola=rnd.choice(skoly), |
|
|
resitele.append(Resitel.objects.create(osoba=os, skola=rnd.choice(skoly), |
|
|
rok_maturity=rnd.randint(2019, 2029), |
|
|
rok_maturity=rnd.randint(2019, 2029), |
|
|
zasilat=rnd.choice(Resitel.ZASILAT_CHOICES)[0])) |
|
|
zasilat=rnd.choice(Resitel.ZASILAT_CHOICES)[0])) |
|
|