|
@ -484,18 +484,11 @@ class OdmenyView(generic.TemplateView): |
|
|
|
|
|
|
|
|
context["from_cislo"] = fromcislo |
|
|
context["from_cislo"] = fromcislo |
|
|
context["to_cislo"] = tocislo |
|
|
context["to_cislo"] = tocislo |
|
|
context["zmeny_prvni_prvni"] = get_diff( |
|
|
from_deadline = posledni_deadline_oprava(fromcislo) |
|
|
fromcislo.zlomovy_deadline_pro_papirove_cislo(), |
|
|
to_deadline = posledni_deadline_oprava(tocislo) |
|
|
tocislo.zlomovy_deadline_pro_papirove_cislo() |
|
|
context["from_deadline"] = from_deadline |
|
|
) |
|
|
context["to_deadline"] = to_deadline |
|
|
context["zmeny_prvni_posledni"] = get_diff( |
|
|
context["zmeny"] = get_diff(from_deadline, to_deadline) |
|
|
fromcislo.zlomovy_deadline_pro_papirove_cislo(), |
|
|
|
|
|
posledni_deadline_oprava(tocislo) |
|
|
|
|
|
) |
|
|
|
|
|
context["zmeny_posledni_prvni"] = get_diff( |
|
|
|
|
|
posledni_deadline_oprava(fromcislo), |
|
|
|
|
|
tocislo.zlomovy_deadline_pro_papirove_cislo() |
|
|
|
|
|
) |
|
|
|
|
|
|
|
|
|
|
|
return context |
|
|
return context |
|
|
|
|
|
|
|
|