{{{
def clean(self):
start_date = self.cleaned_data.get('start_date')
end_date = self.cleaned_data.get('end_date')
if start_date is None:
raise forms.ValidationError({'start_date': ["Start date is
empty",]})
elif end_date is None:
raise forms.ValidationError({'end_date': ["End date is
empty",]})
}}}
The ValueError is thrown by the if start_date is None: line
--
Ticket URL: <https://code.djangoproject.com/ticket/32530>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* status: new => closed
* resolution: => duplicate
Comment:
Duplicate of #30373, see
[https://code.djangoproject.com/ticket/30373#comment:1 comment].
--
Ticket URL: <https://code.djangoproject.com/ticket/32530#comment:1>