Opened 7 years ago

Closed 3 years ago

#17401 closed Bug (fixed)

SelectDateWidget doesn't display erroneous values

Reported by: anonymous Owned by: Claude Paroz <claude@…>
Component: Forms Version: master
Severity: Normal Keywords:
Cc: wiktor@… Triage Stage: Accepted
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no


If you enter an invalid date (ie. Feb. 30) the bound widget will render empty.

I don't know if it is intentional but since it is inconsistent with most other widgets I consider it a bug.

Attachments (1) (743 bytes) - added by anonymous 7 years ago.

Download all attachments as: .zip

Change History (9)

Changed 7 years ago by anonymous

Attachment: added

comment:1 Changed 7 years ago by Gabriel Hurley

Triage Stage: UnreviewedAccepted

comment:2 Changed 6 years ago by Julien Phalip

Needs tests: set

Note that the same pattern is also used in SelectDateWidget.value_from_datadict(). This would need tests.

comment:3 Changed 5 years ago by marw85

Owner: changed from nobody to marw85
Status: newassigned

comment:4 Changed 5 years ago by marw85

Needs tests: unset
Owner: marw85 deleted
Status: assignednew

Added test, patch and tests integrated into:

comment:5 Changed 5 years ago by Wiktor

Cc: wiktor@… added

comment:6 Changed 4 years ago by Tim Graham

Patch needs improvement: set

I left comments for improvement on the PR. Please uncheck "Patch needs improvement" when you update it, thanks.

comment:7 Changed 3 years ago by Claude Paroz

Patch needs improvement: unset

comment:8 Changed 3 years ago by Claude Paroz <claude@…>

Owner: set to Claude Paroz <claude@…>
Resolution: fixed
Status: newclosed

In 4b8979e477a5315f3dfde0348393fd404fb70ee4:

Fixed #17401 -- Made SelectDateWidget.render reflect wrong value

Thanks Marcin Wrobel for the initial patch.

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