Testdata: Úprava podle toho, že si ČísloNode vyrábí Číslo v save()
This commit is contained in:
parent
3f858db23c
commit
b1ff0bc784
1 changed files with 3 additions and 1 deletions
|
@ -437,7 +437,9 @@ def gen_cisla(rnd, rocniky):
|
|||
verejne_db=True,
|
||||
verejna_vysledkovka=True
|
||||
)
|
||||
node2 = CisloNode.objects.create(cislo = cislo, succ = node, root=rocnik.rocniknode)
|
||||
node2 = CisloNode.objects.get(cislo = cislo)
|
||||
node2.succ = node
|
||||
node2.root = rocnik.rocniknode
|
||||
cislo.save()
|
||||
node = node2
|
||||
if otec:
|
||||
|
|
Loading…
Reference in a new issue