Dneska končím
This commit is contained in:
parent
3dcaeee12c
commit
353363af8d
1 changed files with 1 additions and 1 deletions
|
@ -494,7 +494,7 @@ class OdmenyView(generic.TemplateView):
|
||||||
def posledni_deadline_oprava(cislo: Cislo) -> Deadline:
|
def posledni_deadline_oprava(cislo: Cislo) -> Deadline:
|
||||||
posledni_deadline = cislo.posledni_deadline
|
posledni_deadline = cislo.posledni_deadline
|
||||||
if posledni_deadline is None:
|
if posledni_deadline is None:
|
||||||
return Deadline.objects.filter(Q(cislo__poradi__lt=self.poradi, cislo__rocnik=self.rocnik) | Q(cislo__rocnik__rocnik__lt=self.rocnik.rocnik)).order_by("deadline").last()
|
return Deadline.objects.filter(Q(cislo__poradi__lt=cislo.poradi, cislo__rocnik=cislo.rocnik) | Q(cislo__rocnik__rocnik__lt=cislo.rocnik.rocnik)).order_by("deadline").last()
|
||||||
return posledni_deadline
|
return posledni_deadline
|
||||||
|
|
||||||
context["from_cislo"] = fromcislo
|
context["from_cislo"] = fromcislo
|
||||||
|
|
Loading…
Reference in a new issue