Skip to content

Commit ab8eccf

Browse files
smithdc1felixxm
authored andcommitted
[3.1.x] Fixed empty values of forms.JSONField and forms.UUIDField in docs.
Backport of e6d77e6 from master
1 parent b7df7de commit ab8eccf

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

docs/ref/forms/fields.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -787,7 +787,7 @@ For each field, we describe the default widget used if you don't specify
787787
:class:`~django.db.models.JSONField`.
788788

789789
* Default widget: :class:`Textarea`
790-
* Empty value: ``''`` (an empty string)
790+
* Empty value: ``None``
791791
* Normalizes to: A Python representation of the JSON value (usually as a
792792
``dict``, ``list``, or ``None``), depending on :attr:`JSONField.decoder`.
793793
* Validates that the given value is a valid JSON.
@@ -1014,7 +1014,7 @@ For each field, we describe the default widget used if you don't specify
10141014
.. class:: UUIDField(**kwargs)
10151015

10161016
* Default widget: :class:`TextInput`
1017-
* Empty value: ``''`` (an empty string)
1017+
* Empty value: ``None``
10181018
* Normalizes to: A :class:`~python:uuid.UUID` object.
10191019
* Error message keys: ``required``, ``invalid``
10201020

0 commit comments

Comments
 (0)