Opened 14 years ago

Closed 14 years ago

Last modified 13 years ago

#14219 closed (duplicate)

Incorrect empty field validation for DateTimeField with SplitDateTimeWidget

Reported by: pma_ Owned by: nobody
Component: Forms Version: 1.1
Severity: Keywords: validation DateTimeField
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

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

Change History (2)

comment:1 by Karen Tracey, 14 years ago

Resolution: duplicate
Status: newclosed

I think this is the same as #13205

comment:2 by Jacob, 13 years ago

milestone: 1.3

Milestone 1.3 deleted

Note: See TracTickets for help on using tickets.
Back to Top