Fix date format validation error reported with 0.2.8 release

This commit is contained in:
Garret Wassermann 2018-07-13 01:10:25 -04:00
parent 9cb32f83ca
commit fbddbd6f6e

View File

@ -399,7 +399,7 @@ def update_ticket(request, ticket_id, public=False):
# NOTE: jQuery's default for dates is mm/dd/yy
# very US-centric but for now that's the only format supported
# until we clean up code to internationalize a little more
due_date = request.POST.get('due_date', None)
due_date = request.POST.get('due_date', None) or None
if due_date is not None:
# based on Django code to parse dates: