From d83ac0eb237bd4cd00871f1c464cd15786e60e34 Mon Sep 17 00:00:00 2001 From: Pavel 'LEdoian' Turinsky Date: Wed, 20 Nov 2019 21:24:51 +0100 Subject: [PATCH] =?UTF-8?q?Opraven=20chyb=C4=9Bj=C3=ADc=C3=AD=20.all=20na?= =?UTF-8?q?=20*node=5Fset=20v=20nov=C3=BDch=20metod=C3=A1ch?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- seminar/models.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/seminar/models.py b/seminar/models.py index 327e7424..ff074ff7 100644 --- a/seminar/models.py +++ b/seminar/models.py @@ -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()