Skip to content

Commit 2dd6a83

Browse files
committed
Refs #12990 -- Removed django.contrib.postgres.forms.JSONField per deprecation timeline.
1 parent 8fdb5a6 commit 2dd6a83

File tree

5 files changed

+2
-54
lines changed

5 files changed

+2
-54
lines changed
Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
from .array import * # NOQA
22
from .hstore import * # NOQA
3-
from .jsonb import * # NOQA
43
from .ranges import * # NOQA

django/contrib/postgres/forms/jsonb.py

Lines changed: 0 additions & 16 deletions
This file was deleted.

docs/ref/contrib/postgres/forms.txt

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -158,25 +158,6 @@ Fields
158158
valid for a given field. This can be done using the
159159
:class:`~django.contrib.postgres.validators.KeysValidator`.
160160

161-
``JSONField``
162-
-------------
163-
164-
.. class:: JSONField
165-
166-
A field which accepts JSON encoded data for a
167-
:class:`~django.db.models.JSONField`. It is represented by an HTML
168-
``<textarea>``.
169-
170-
.. admonition:: User friendly forms
171-
172-
``JSONField`` is not particularly user friendly in most cases, however
173-
it is a useful way to format data from a client-side widget for
174-
submission to the server.
175-
176-
.. deprecated:: 3.1
177-
178-
Use :class:`django.forms.JSONField` instead.
179-
180161
Range Fields
181162
------------
182163

docs/releases/4.0.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -319,3 +319,5 @@ to remove usage of these features.
319319

320320
* ``django.contrib.postgres.fields.jsonb.KeyTransform`` and
321321
``django.contrib.postgres.fields.jsonb.KeyTextTransform`` are removed.
322+
323+
* ``django.contrib.postgres.forms.JSONField`` is removed.

tests/postgres_tests/test_json_deprecation.py

Lines changed: 0 additions & 18 deletions
This file was deleted.

0 commit comments

Comments
 (0)