@ -1139,6 +1139,7 @@ class Reseni(SeminarModelBase):
# má ForeignKey s:
# Hodnoceni
# ReseniNode
def sum_body(self):
return self.hodnoceni_set.all().aggregate(Sum('body'))["body__sum"]