diff --git a/seminar/models.py b/seminar/models.py index bf68d015..fefd72d3 100644 --- a/seminar/models.py +++ b/seminar/models.py @@ -1544,6 +1544,7 @@ class Nastaveni(SingletonModel): aktualni_cislo = models.ForeignKey(Cislo, verbose_name='poslední vydané číslo', null=False, on_delete=models.PROTECT) + @property def aktualni_rocnik(self): return self.aktualni_cislo.rocnik