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,
|
verejne_db=True,
|
||||||
verejna_vysledkovka=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()
|
cislo.save()
|
||||||
node = node2
|
node = node2
|
||||||
if otec:
|
if otec:
|
||||||
|
|
Loading…
Reference in a new issue