diff options
| author | Tim Graham <timograham@gmail.com> | 2015-04-24 08:25:33 -0400 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2015-04-24 08:25:33 -0400 |
| commit | 618bc4e65316681314522f63522c419fb6f7285e (patch) | |
| tree | 7282865e1e90d9a0d5f8c7126f73c2008e770bd4 /docs | |
| parent | 6d685b16743c9fc15a5e2ce8dc0e13858a157259 (diff) | |
Documented INSTALLED_APPS requirement for HStoreField.
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/ref/contrib/postgres/fields.txt | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/docs/ref/contrib/postgres/fields.txt b/docs/ref/contrib/postgres/fields.txt index 1a1d228da9..e5b7a1148a 100644 --- a/docs/ref/contrib/postgres/fields.txt +++ b/docs/ref/contrib/postgres/fields.txt @@ -251,11 +251,15 @@ 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. + To use this field, you'll need to: + + 1. Add ``'django.contrib.postgres'`` in your :setting:`INSTALLED_APPS`. + 2. Setup the hstore extension in PostgreSQL before the first ``CreateModel`` + or ``AddField`` operation by adding a migration with the + :class:`~django.contrib.postgres.operations.HStoreExtension` operation. + + You'll see an error like ``can't adapt type 'dict'`` if you skip the first + step, or ``type "hstore" does not exist`` if you skip the second. .. note:: |
