mirror of
https://github.com/django/django.git
synced 2025-06-09 05:29:13 +00:00
[1.8.x] Fixed #24645 -- Documented use of HStoreExtension.
Backport of d3bf5e7b0016edc02e125699c0b0d3aa93404940 from master
This commit is contained in:
parent
70ff455a35
commit
6e5e1a380c
@ -251,6 +251,12 @@ HStoreField
|
|||||||
A field for storing mappings of strings to strings. The Python data type
|
A field for storing mappings of strings to strings. The Python data type
|
||||||
used is a ``dict``.
|
used is a ``dict``.
|
||||||
|
|
||||||
|
To use this field, you'll need to setup the hstore extension in PostgreSQL
|
||||||
|
by adding a migration with the
|
||||||
|
:class:`~django.contrib.postgres.operations.HStoreExtension` operation.
|
||||||
|
You'll see an error like ``'type "hstore" does not exist'`` if you skip
|
||||||
|
this step.
|
||||||
|
|
||||||
.. note::
|
.. note::
|
||||||
|
|
||||||
On occasions it may be useful to require or restrict the keys which are
|
On occasions it may be useful to require or restrict the keys which are
|
||||||
|
Loading…
x
Reference in New Issue
Block a user