mirror of
https://github.com/django/django.git
synced 2025-08-31 15:57:45 +00:00
Fixed #27582 -- Allowed HStoreField to store null values.
This commit is contained in:
parent
9524fd9133
commit
bf84d042e0
6 changed files with 33 additions and 9 deletions
|
@ -144,8 +144,8 @@ Fields
|
|||
.. class:: HStoreField
|
||||
|
||||
A field which accepts JSON encoded data for an
|
||||
:class:`~django.contrib.postgres.fields.HStoreField`. It will cast all the
|
||||
values to strings. It is represented by an HTML ``<textarea>``.
|
||||
:class:`~django.contrib.postgres.fields.HStoreField`. It casts all values
|
||||
(except nulls) to strings. It is represented by an HTML ``<textarea>``.
|
||||
|
||||
.. admonition:: User friendly forms
|
||||
|
||||
|
@ -159,6 +159,10 @@ Fields
|
|||
valid for a given field. This can be done using the
|
||||
:class:`~django.contrib.postgres.validators.KeysValidator`.
|
||||
|
||||
.. versionchanged:: 1.11
|
||||
|
||||
Added the ability to store nulls.
|
||||
|
||||
``JSONField``
|
||||
-------------
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue