|
|
@ -55,8 +55,6 @@ def create_test_data(size = 6, rnd = None): |
|
|
|
|
|
|
|
# cisla |
|
|
|
cisel = rnd.randint(4, 6) |
|
|
|
if ri == last_rocnik: |
|
|
|
cisel = 1 |
|
|
|
|
|
|
|
cs = {} |
|
|
|
for ci in range(1, cisel + 1): |
|
|
@ -84,5 +82,5 @@ def create_test_data(size = 6, rnd = None): |
|
|
|
body = rnd.randint(0, p.body), cislo_body = cs[ci]) |
|
|
|
|
|
|
|
nastaveni = Nastaveni.objects.create(aktualni_rocnik = Rocnik.objects.last(), |
|
|
|
aktualni_cislo = Cislo.objects.last()) |
|
|
|
aktualni_cislo = Cislo.objects.all()[1]) |
|
|
|
|
|
|
|