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