Opened 4 years ago

Closed 4 years ago

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


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

Attachments (0)

Change History (2)

comment:1 Changed 4 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 3 years ago by jacob

  • milestone 1.3 deleted

Milestone 1.3 deleted

Add Comment

Modify Ticket

Change Properties
<Author field>
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.