Opened 16 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)
Change History (6)
by , 16 years ago
Attachment: | splitdatetimewidget_formats.diff added |
---|
comment:1 by , 16 years ago
Keywords: | i18n-rf added |
---|
comment:2 by , 16 years ago
milestone: | → post-1.0 |
---|---|
Needs documentation: | set |
Triage Stage: | Unreviewed → Accepted |
comment:3 by , 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.
Note:
See TracTickets
for help on using tickets.
Adds date_format and time_format arguments