Male zlepseni test. dat
This commit is contained in:
parent
b6003c4094
commit
997e4bcdfd
1 changed files with 1 additions and 3 deletions
|
@ -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])
|
||||
|
||||
|
|
Loading…
Reference in a new issue