Opened 17 years ago
Closed 17 years ago
#6966 closed (invalid)
It's impossible to specify input_formats for DateTimeFields in ModelForms
Reported by: | 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.
Note:
See TracTickets
for help on using tickets.
Overriding the input format of a
DateField
works the same way as overriding any aspect of any field used in aModelForm
; consult the documentation for details.