From eecaa20cc2cce68a1912ee33977ee1ab1ed5f548 Mon Sep 17 00:00:00 2001 From: Jonas Havelka Date: Tue, 9 Mar 2021 20:28:27 +0100 Subject: [PATCH] =?UTF-8?q?fix:=20Chyb=C4=9Bj=C3=ADc=C3=AD=20cached=5Fprop?= =?UTF-8?q?erty=20u=20=C4=8Dl=C3=A1nku=20(padala=20v=C3=BDsledkovka)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- seminar/models.py | 1 + 1 file changed, 1 insertion(+) diff --git a/seminar/models.py b/seminar/models.py index f2c418e6..b7147106 100644 --- a/seminar/models.py +++ b/seminar/models.py @@ -962,6 +962,7 @@ class Clanek(Problem): cislo = models.ForeignKey(Cislo, blank=True, null=True, on_delete=models.PROTECT, verbose_name='číslo vydání', related_name='vydane_clanky') + @cached_property def kod_v_rocniku(self): if self.stav == 'zadany': # Nemělo by být potřeba