From 6e5e1a380ce45e1fd828e610f878b0285b668af4 Mon Sep 17 00:00:00 2001 From: Tim Graham Date: Thu, 16 Apr 2015 07:22:01 -0400 Subject: [PATCH] [1.8.x] Fixed #24645 -- Documented use of HStoreExtension. Backport of d3bf5e7b0016edc02e125699c0b0d3aa93404940 from master --- docs/ref/contrib/postgres/fields.txt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/docs/ref/contrib/postgres/fields.txt b/docs/ref/contrib/postgres/fields.txt index 760286dcace..1a1d228da9d 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