Opened 17 years ago

Closed 16 years ago

Last modified 16 years ago

#6035 closed (fixed)

SplitDateTimeField doesn't use SplitDateTimeWidget by default

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

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 17 years ago.

Download all attachments as: .zip

Change History (6)

by David Tulig, 17 years ago

Attachment: splitdatetimefield.diff added

comment:1 by David Tulig, 17 years ago

Owner: changed from nobody to David Tulig
Status: newassigned

comment:2 by David Tulig, 17 years ago

Cc: david.tulig@… removed

comment:3 by Jacob, 16 years ago

Triage Stage: UnreviewedAccepted

comment:4 by Karen Tracey, 16 years ago

Resolution: fixed
Status: assignedclosed

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

comment:5 by Karen Tracey, 16 years ago

(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