|
|
@ -706,14 +706,6 @@ class Uloha(Problem): |
|
|
|
verbose_name = 'Úloha' |
|
|
|
verbose_name_plural = 'Úlohy' |
|
|
|
|
|
|
|
|
|
|
|
zadani = models.OneToOneField(Text, verbose_name='veřejné zadání', |
|
|
|
related_name="uloha_zadani_set", blank=True, null=True) |
|
|
|
|
|
|
|
vzorak = models.OneToOneField(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') |
|
|
|
|
|
|
@ -1041,6 +1033,9 @@ class Reseni_Resitele(models.Model): |
|
|
|
|
|
|
|
reseni = models.ForeignKey(Reseni, verbose_name='řešení') |
|
|
|
|
|
|
|
# podil - jakou merou se ktery resitel podilel na danem reseni |
|
|
|
# - pouziti v budoucnu, pokud by resitele nemeli dostat vsichni stejne bodu za spolecne reseni |
|
|
|
|
|
|
|
def __str__(self): |
|
|
|
return '{} od {}'.format(self.reseni, self.resitel) |
|
|
|
# NOTE: Poteciální DB HOG bez select_related |
|
|
|