Comment 2 for bug 396383

Revision history for this message
Curtis Hovey (sinzui) wrote : Re: date widget could be smarter, giving a date in format DDMMYYYY OOPSes

The datetime widget bug (while real) is not the bug in the oops. The restful marshaller expects a string, but the JSON serialized the numbers as numbers. Lazr.restful.marshallers.DateTimeFieldMarshaller must add a TypeError to its expected exceptions:

    TypeError('Expected a string argument')

So that normal error handling will occur.

This bug affects every date and datetime that is sent via AJAX.