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

This commit is contained in:
Jonas Havelka 2022-10-24 20:33:55 +02:00
parent 009cd49f37
commit a03c9a3369

View file

@ -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(),