fix: maximum bodů pro hodnocení

This commit is contained in:
Jonas Havelka 2023-02-06 23:16:17 +01:00
parent 52ac8364eb
commit 4f7b64fae2

View file

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