Opened 8 years ago

Closed 8 years ago

Last modified 7 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


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 Changed 8 years ago by Karen Tracey

Resolution: duplicate
Status: newclosed

I think this is the same as #13205

comment:2 Changed 7 years ago by Jacob

milestone: 1.3

Milestone 1.3 deleted

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