Opened 5 years ago

Closed 5 years ago

Last modified 4 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: UI/UX:

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 Changed 5 years ago by kmtracey

  • Resolution set to duplicate
  • Status changed from new to closed

I think this is the same as #13205

comment:2 Changed 4 years ago by jacob

  • milestone 1.3 deleted

Milestone 1.3 deleted

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