Browse Source

Fix (tab. doš. řešení): strftime vyhazuje datum bez paddingu nul, tak tam nakódíme string…

pull/3/head
Jonas Havelka 2 years ago
parent
commit
a03c9a3369
  1. 3
      odevzdavatko/forms.py

3
odevzdavatko/forms.py

@ -155,8 +155,7 @@ class OdevzdavatkoTabulkaFiltrForm(forms.Form):
result = [] result = []
result.append(( result.append(("0001-01-01", f"Odjakživa"))
strftime(DATE_FORMAT, datetime.date.min.timetuple()), 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…
Cancel
Save