@ -333,7 +333,7 @@ class Cislo(SeminarModelBase):
@property
def posledni_deadline(self):
return self.deadline_v_cisle.all().last()
return self.deadline_v_cisle.all().order_by("deadline").last()
class Deadline(SeminarModelBase):
class Meta: