From 43d0ca7e9183ca439a9789d01c719a88fd810972 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kate=C5=99ina=20=C4=8C?= Date: Tue, 23 Feb 2021 21:58:10 +0100 Subject: [PATCH] =?UTF-8?q?ro=C4=8Dn=C3=ADk=20m=C3=A1=20sv=C3=A1=20t=C3=A9?= =?UTF-8?q?mata?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- seminar/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/seminar/models.py b/seminar/models.py index 5f427fb2..fd34773f 100644 --- a/seminar/models.py +++ b/seminar/models.py @@ -921,7 +921,7 @@ class Tema(Problem): tema_typ = models.CharField('Typ tématu', max_length=16, choices=TEMA_CHOICES, blank=False, default=TEMA_TEMA) - rocnik = models.ForeignKey(Rocnik, verbose_name='ročník',blank=True, null=True, + rocnik = models.ForeignKey(Rocnik, verbose_name='ročník',related_name='temata',blank=True, null=True, on_delete=models.PROTECT) abstrakt = models.TextField('Abstrakt na rozcestník', blank=True)