From 910e34a51515a7825b7259d909eab2c9a1e299a9 Mon Sep 17 00:00:00 2001 From: Anet Date: Thu, 7 Nov 2019 20:24:44 +0100 Subject: [PATCH] =?UTF-8?q?models.py:=20$(class)=20je=20pot=C5=99eba=20u?= =?UTF-8?q?=20abstraktn=C3=AD=20t=C5=99=C3=ADdy=20v=20related=20name.?= 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 45e5885e..67faff22 100644 --- a/seminar/models.py +++ b/seminar/models.py @@ -607,7 +607,7 @@ class Problem(SeminarModelBase,PolymorphicModel): # Problém má podproblémy nadproblem = models.ForeignKey('self', verbose_name='nadřazený problém', - related_name='podproblem', null=True, blank=True, + related_name='podproblem_%(class)s', null=True, blank=True, on_delete=models.SET_NULL) STAV_NAVRH = 'navrh'