Opened 8 years ago

Closed 6 years ago

#7509 closed (fixed)

SplitDateTimeWidget doesn't allow specification of date or time formats

Reported by: insin 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: UI/UX:


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

Download all attachments as: .zip

Change History (6)

Changed 8 years ago by insin

Adds date_format and time_format arguments

comment:1 Changed 8 years ago by garcia_marc

  • Keywords i18n-rf added
  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset

comment:2 Changed 8 years ago by programmerq

  • milestone set to post-1.0
  • Needs documentation set
  • Triage Stage changed from Unreviewed to Accepted

comment:3 Changed 8 years ago by mrmachine

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 7 years ago by anonymous

  • milestone post-1.0 deleted

Milestone post-1.0 deleted

comment:5 Changed 6 years ago by jezdez

  • Resolution set to fixed
  • Status changed from new to closed

Fixed a while ago in [10115].

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