Merge branch 'oprava_tabulky' into develop
This commit is contained in:
commit
58d6334ba5
1 changed files with 1 additions and 4 deletions
|
@ -155,10 +155,7 @@ class OdevzdavatkoTabulkaFiltrForm(forms.Form):
|
||||||
|
|
||||||
result = []
|
result = []
|
||||||
|
|
||||||
date_str = strftime(DATE_FORMAT, datetime.date.min.timetuple())
|
result.append(("0001-01-01", f"Odjakživa"))
|
||||||
if date_str[0] == '1': # Někde očividně vrací strftime rok bez nul.
|
|
||||||
date_str = "000" + date_str
|
|
||||||
result.append((date_str, f"Odjakživa"))
|
|
||||||
|
|
||||||
for deadline in m.Deadline.objects.filter(
|
for deadline in m.Deadline.objects.filter(
|
||||||
deadline__lte=timezone.now(),
|
deadline__lte=timezone.now(),
|
||||||
|
|
Loading…
Reference in a new issue