Opened 17 years ago

Closed 15 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: dev
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

Description

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 17 years ago.
Adds date_format and time_format arguments

Download all attachments as: .zip

Change History (6)

by Jonathan Buchanan, 17 years ago

Adds date_format and time_format arguments

comment:1 by Marc Garcia, 16 years ago

Keywords: i18n-rf added

comment:2 by Jeff Anderson, 16 years ago

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

comment:3 by Tai Lee, 16 years ago

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 by (none), 16 years ago

milestone: post-1.0

Milestone post-1.0 deleted

comment:5 by Jannis Leidel, 15 years ago

Resolution: fixed
Status: newclosed

Fixed a while ago in [10115].

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