Bufgix related_name
This commit is contained in:
parent
1d46517581
commit
f13b94ff7d
1 changed files with 2 additions and 2 deletions
|
@ -706,9 +706,9 @@ class Uloha(Problem):
|
||||||
verbose_name_plural = 'Úlohy'
|
verbose_name_plural = 'Úlohy'
|
||||||
|
|
||||||
|
|
||||||
zadani = models.ForeignKey(Text, verbose_name='veřejné zadání', blank=True, null=True)
|
zadani = models.ForeignKey(Text, verbose_name='veřejné zadání', related_name="uloha_zadani_set", blank=True, null=True)
|
||||||
|
|
||||||
vzorak = models.ForeignKey(Text, verbose_name='vzorové řešení', blank=True, null=True)
|
vzorak = models.ForeignKey(Text, verbose_name='vzorové řešení', related_name="uloha_vzorak_set", blank=True, null=True)
|
||||||
|
|
||||||
|
|
||||||
cislo_zadani = models.ForeignKey(Cislo, verbose_name='číslo zadání', blank=True, null=True, related_name='zadane_ulohy')
|
cislo_zadani = models.ForeignKey(Cislo, verbose_name='číslo zadání', blank=True, null=True, related_name='zadane_ulohy')
|
||||||
|
|
Loading…
Reference in a new issue