diff options
author | Tim Graham <timograham@gmail.com> | 2015-04-16 07:22:01 -0400 |
---|---|---|
committer | Tim Graham <timograham@gmail.com> | 2015-04-16 07:22:01 -0400 |
commit | d3bf5e7b0016edc02e125699c0b0d3aa93404940 (patch) | |
tree | 808d403657ad356888a2616c9faa53d407408407 | |
parent | fb5c7748daa25a40bfc62834acb5731c71a6b713 (diff) | |
download | django-d3bf5e7b0016edc02e125699c0b0d3aa93404940.tar.gz |
Fixed #24645 -- Documented use of HStoreExtension.
-rw-r--r-- | docs/ref/contrib/postgres/fields.txt | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/docs/ref/contrib/postgres/fields.txt b/docs/ref/contrib/postgres/fields.txt index 760286dcac..1a1d228da9 100644 --- a/docs/ref/contrib/postgres/fields.txt +++ b/docs/ref/contrib/postgres/fields.txt @@ -251,6 +251,12 @@ HStoreField A field for storing mappings of strings to strings. The Python data type 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:: On occasions it may be useful to require or restrict the keys which are |