Opened 9 years ago

Closed 8 years ago

Last modified 8 years ago

#6035 closed (fixed)

SplitDateTimeField doesn't use SplitDateTimeWidget by default

Reported by: David Tulig Owned by: David Tulig
Component: Forms Version: master
Severity: Keywords:
Cc: Triage Stage: Accepted
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:

Description

When using SplitDateTimeField in a form, the default behaviour is to display a TextInput widget when rendered, not only is it not what is expected, but you are unable to enter a valid datetime because validation fails. Attached patch sets the widget property of SplitDateTimeField to SplitDateTimeWidget. It still allows a custom widget to be passed in as a parameter.

Attachments (1)

splitdatetimefield.diff (1.0 KB) - added by David Tulig 9 years ago.

Download all attachments as: .zip

Change History (6)

Changed 9 years ago by David Tulig

Attachment: splitdatetimefield.diff added

comment:1 Changed 9 years ago by David Tulig

Needs documentation: unset
Needs tests: unset
Owner: changed from nobody to David Tulig
Patch needs improvement: unset
Status: newassigned

comment:2 Changed 9 years ago by David Tulig

Cc: david.tulig@… removed

comment:3 Changed 8 years ago by Jacob

Triage Stage: UnreviewedAccepted

comment:4 Changed 8 years ago by Karen Tracey

Resolution: fixed
Status: assignedclosed

(In [9385]) Fixed #6035 -- Gave the SplitDateTimeField the proper default widget. Thanks dtulig.

comment:5 Changed 8 years ago by Karen Tracey

(In [9386]) [1.0.X] Fixed #6035 -- Gave the SplitDateTimeField the proper default widget. Thanks dtulig.

r9385 from trunk.

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