Opened 17 years ago

Closed 17 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: dev
Severity: Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

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 by James Bennett, 17 years ago

Resolution: invalid
Status: newclosed

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