Opened 8 years ago

Closed 8 years ago

#6966 closed (invalid)

It's impossible to specify input_formats for DateTimeFields in ModelForms

Reported by: johannes.spielmann@… Owned by: nobody
Component: Forms Version: master
Severity: Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:


Trying to create a ModelForm with localized DateTime input.
There is no way to specify the input format for the DateTimeFields in the forms, and no way to specify some alternative DEFAULT_DATETIME_INPUT_FORMATS.

Change History (1)

comment:1 Changed 8 years ago by ubernostrum

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Resolution set to invalid
  • Status changed from new to closed

Overriding the input format of a DateField works the same way as overriding any aspect of any field used in a ModelForm; consult the documentation for details.

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