[1.9.x] Fixed #25949 -- Documented Psycopg2 version requirement for JSONField.

Backport of b26d147259202455ce356755b729c3dcb16ae9e6 from master
This commit is contained in:
Tim Graham 2015-12-18 07:53:57 -05:00
parent 24ebf17f04
commit 571f7b759e
2 changed files with 3 additions and 3 deletions

View File

@ -483,8 +483,7 @@ JSONField
of the JSON which allows indexing. The trade-off is a small additional cost of the JSON which allows indexing. The trade-off is a small additional cost
on writing to the ``jsonb`` field. ``JSONField`` uses ``jsonb``. on writing to the ``jsonb`` field. ``JSONField`` uses ``jsonb``.
**As a result, the usage of this field is only supported on PostgreSQL **As a result, this field requires PostgreSQL ≥ 9.4 and Psycopg2 ≥ 2.5.4**.
versions at least 9.4**.
Querying JSONField Querying JSONField
^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^

View File

@ -10,7 +10,8 @@ PostgreSQL has a number of features which are not shared by the other databases
Django supports. This optional module contains model fields and form fields for Django supports. This optional module contains model fields and form fields for
a number of PostgreSQL specific data types. a number of PostgreSQL specific data types.
Psycopg2 2.5 or higher is required. Psycopg2 2.5 or higher is required, though we highly recommend using the latest
release. Some fields require higher versions.
.. note:: .. note::
Django is, and will continue to be, a database-agnostic web framework. We Django is, and will continue to be, a database-agnostic web framework. We