Revert "models.py: $(class) je potřeba u abstraktní třídy v related name."
=> %(class)s je potřeba jen u abstraktní třídy, to Problem není.
This reverts commit 910e34a515
.
This commit is contained in:
parent
910e34a515
commit
b8a110f968
1 changed files with 1 additions and 1 deletions
|
@ -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'
|
||||
|
|
Loading…
Reference in a new issue