From b8a110f9687769efe05ff9119fd7b07eab552210 Mon Sep 17 00:00:00 2001 From: Anet Date: Thu, 7 Nov 2019 21:09:00 +0100 Subject: [PATCH] =?UTF-8?q?Revert=20"models.py:=20$(class)=20je=20pot?= =?UTF-8?q?=C5=99eba=20u=20abstraktn=C3=AD=20t=C5=99=C3=ADdy=20v=20related?= =?UTF-8?q?=20name."=20=3D>=20%(class)s=20je=20pot=C5=99eba=20jen=20u=20ab?= =?UTF-8?q?straktn=C3=AD=20t=C5=99=C3=ADdy,=20to=20Problem=20nen=C3=AD.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This reverts commit 910e34a51515a7825b7259d909eab2c9a1e299a9. --- seminar/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/seminar/models.py b/seminar/models.py index 67faff22..45e5885e 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_%(class)s', null=True, blank=True, + related_name='podproblem', null=True, blank=True, on_delete=models.SET_NULL) STAV_NAVRH = 'navrh'