1
0
mirror of https://github.com/django/django.git synced 2025-10-31 09:41:08 +00:00

Fixed #28009 -- Doc'd empty_value for CharField subclasses.

This commit is contained in:
David Smith
2020-07-04 07:58:11 +01:00
committed by Mariusz Felisiak
parent b8239cae19
commit 91669cc566
2 changed files with 21 additions and 20 deletions

View File

@@ -288,8 +288,10 @@ File Storage
Forms
~~~~~
* The new :attr:`CharField.empty_value <django.forms.CharField.empty_value>`
attribute allows specifying the Python value to use to represent "empty".
* The new ``empty_value`` attribute on :class:`~django.forms.CharField`,
:class:`~django.forms.EmailField`, :class:`~django.forms.RegexField`,
:class:`~django.forms.SlugField`, and :class:`~django.forms.URLField` allows
specifying the Python value to use to represent "empty".
* The new :meth:`Form.get_initial_for_field()
<django.forms.Form.get_initial_for_field>` method returns initial data for a