mirror of
https://github.com/django/django.git
synced 2025-08-04 02:48:35 +00:00
Fixed #8962 -- Consistently support format and input_format in the various (individual, combined, split) date and time form fields and widgets.
Many thanks to Tai Lee for doing all the work here. git-svn-id: http://code.djangoproject.com/svn/django/trunk@10115 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
b203db6ec8
commit
14b160957e
8 changed files with 177 additions and 17 deletions
|
@ -66,9 +66,9 @@ Countries currently supported by :mod:`~django.contrib.localflavor` are:
|
|||
* `United States of America`_
|
||||
|
||||
The ``django.contrib.localflavor`` package also includes a ``generic`` subpackage,
|
||||
containing useful code that is not specific to one particular country or
|
||||
culture. Currently, it defines date and datetime input fields based on those
|
||||
from :ref:`forms <topics-forms-index>`, but with non-US default formats.
|
||||
containing useful code that is not specific to one particular country or culture.
|
||||
Currently, it defines date, datetime and split datetime input fields based on
|
||||
those from :ref:`forms <topics-forms-index>`, but with non-US default formats.
|
||||
Here's an example of how to use them::
|
||||
|
||||
from django import forms
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue