#14219: Incorrect empty field validation for DateTimeField with
SplitDateTimeWidget
----------------------------------------+-----------------------------------
Reporter: pma_ | Owner: nobody
Status: new | Milestone: 1.3
Component: Forms | Version: 1.1
Keywords: validation DateTimeField | Stage: Unreviewed
Has_patch: 0 | Needs_docs: 0
Needs_tests: 0 | Needs_better_patch: 0
----------------------------------------+-----------------------------------
Create simple form with field like dt =
DateTimeField(widget=SplitDateTimeWidget)
clean will report error, source is in first line of
DateTimeField.to_python
in case of SplitDateTimeWidget value is ['', ''] and this one is missing
from validators.EMPTY_VALUES.
I'm not sure if it's safe to simply path validators.EMPTY_VALUES by adding
['',''] to list
--
Ticket URL: <http://code.djangoproject.com/ticket/14219>
Django <http://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en.