Opened 11 years ago

Closed 9 years ago

#7509 closed (fixed)

SplitDateTimeWidget doesn't allow specification of date or time formats

Reported by: Jonathan Buchanan Owned by: nobody
Component: Forms Version: master
Severity: Keywords: i18n-rf
Cc: Triage Stage: Accepted
Has patch: yes Needs documentation: yes
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no


There's currently no way to specify how dates and times are displayed in a SplitDateTimeWidget - this patch adds date_format and time_format arguments and modifies the widget to use DateTimeInputs instead of TextInputs.

Attachments (1)

splitdatetimewidget_formats.diff (2.0 KB) - added by Jonathan Buchanan 11 years ago.
Adds date_format and time_format arguments

Download all attachments as: .zip

Change History (6)

Changed 11 years ago by Jonathan Buchanan

Adds date_format and time_format arguments

comment:1 Changed 11 years ago by Marc Garcia

Keywords: i18n-rf added

comment:2 Changed 11 years ago by Jeff Anderson

milestone: post-1.0
Needs documentation: set
Triage Stage: UnreviewedAccepted

comment:3 Changed 11 years ago by Tai Lee

I think this should also allow input_formats for both fields, and let's not forget to add a SplitDateTimeField to django.contrib.localflavor.generic.forms, which uses the international input formats by default.

comment:4 Changed 10 years ago by (none)

milestone: post-1.0

Milestone post-1.0 deleted

comment:5 Changed 9 years ago by Jannis Leidel

Resolution: fixed
Status: newclosed

Fixed a while ago in [10115].

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