mirror of
https://github.com/django/django.git
synced 2025-08-28 14:34:27 +00:00
Fixed #24604 -- Added JSONField to contrib.postgres.
This commit is contained in:
parent
74fe4428e5
commit
33ea472f69
11 changed files with 540 additions and 3 deletions
|
@ -155,6 +155,21 @@ HStoreField
|
|||
valid for a given field. This can be done using the
|
||||
:class:`~django.contrib.postgres.validators.KeysValidator`.
|
||||
|
||||
JSONField
|
||||
---------
|
||||
|
||||
.. class:: JSONField
|
||||
|
||||
A field which accepts JSON encoded data for a
|
||||
:class:`~django.contrib.postgres.fields.JSONField`. It is represented by an
|
||||
HTML ``<textarea>``.
|
||||
|
||||
.. admonition:: User friendly forms
|
||||
|
||||
``JSONField`` is not particularly user friendly in most cases, however
|
||||
it is a useful way to format data from a client-side widget for
|
||||
submission to the server.
|
||||
|
||||
Range Fields
|
||||
------------
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue