mirror of
https://github.com/django/django.git
synced 2024-11-30 07:06:18 +01:00
Fixed #16291 -- Documented that TypedChoiceField does not coerce empty_value. Thanks to vanschelven and taavi223.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@16820 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
9fe050a275
commit
4e47df9de2
@ -379,7 +379,9 @@ Takes extra arguments:
|
||||
.. attribute:: TypedChoiceField.empty_value
|
||||
|
||||
The value to use to represent "empty." Defaults to the empty string;
|
||||
``None`` is another common choice here.
|
||||
``None`` is another common choice here. Note that this value will not be
|
||||
coerced by the function given in the ``coerce`` argument, so choose it
|
||||
accordingly.
|
||||
|
||||
``DateField``
|
||||
~~~~~~~~~~~~~
|
||||
|
Loading…
Reference in New Issue
Block a user