fix: maximum bodů pro hodnocení
This commit is contained in:
parent
52ac8364eb
commit
4f7b64fae2
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue