Opraven chybějící .all na *node_set v nových metodách
This commit is contained in:
parent
1d65f5ee8e
commit
d83ac0eb23
1 changed files with 2 additions and 2 deletions
|
@ -727,7 +727,7 @@ class Tema(Problem):
|
|||
def save(self, *args, **kwargs):
|
||||
super().save(*args, **kwargs)
|
||||
# *Node.save() aktualizuje název *Nodu.
|
||||
for tvcn in self_temavcislenode_set:
|
||||
for tvcn in self_temavcislenode_set.all():
|
||||
tvcn.save()
|
||||
|
||||
class Clanek(Problem):
|
||||
|
@ -779,7 +779,7 @@ class Text(SeminarModelBase):
|
|||
def save(self, *args, **kwargs):
|
||||
super().save(*args, **kwargs)
|
||||
# *Node.save() aktualizuje název *Nodu.
|
||||
for tn in self.textnode_set:
|
||||
for tn in self.textnode_set.all():
|
||||
tn.save()
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue