Browse Source

fix: maximum bodů pro hodnocení

pull/20/head
Jonas Havelka 2 years ago
parent
commit
4f7b64fae2
  1. 2
      seminar/models/odevzdavatko.py

2
seminar/models/odevzdavatko.py

@ -171,7 +171,7 @@ class Hodnoceni(bm.SeminarModelBase):
@property @property
def body_max(self): def body_max(self):
if not isinstance(Hodnoceni.objects.first().problem, am.Uloha): if not isinstance(self.problem, am.Uloha):
return None return None
return self.problem.uloha.max_body return self.problem.uloha.max_body

Loading…
Cancel
Save