Už jsem se zase nechal nachytat na setřízení querysetu
This commit is contained in:
parent
c7332119ac
commit
f1d5beb5ab
1 changed files with 1 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue