Permalink
Browse files

don't register the app hook automatically anymore

  • Loading branch information...
1 parent b5c52cc commit 139224b277055c59ff85d0c9309f62998912a716 @beniwohli committed Mar 28, 2012
Showing with 21 additions and 4 deletions.
  1. +11 −1 README.rst
  2. +0 −2 cms_search/cms_app.py
  3. +10 −1 docs/index.rst
View
@@ -13,4 +13,14 @@ After installing django-cms-search through your package manager of choice, add `
For setting up Haystack, please refer to their `documentation <http://docs.haystacksearch.org/dev/>`_.
For more docs, see the ``docs`` folder or the
-`online documentation <http://django-cms-search.readthedocs.org/en/latest/>`_.
+`online documentation <http://django-cms-search.readthedocs.org/en/latest/>`_.
+
+
+.. warning::
+
+ Since version 0.5, the ``HaystackSearchApphook`` is not registered automatically
+ anymore. If you want do use the default app hook provided by django-cms-search,
+ add this (e.g. in ``models.py``)::
+
+ from cms_search.cms_app import HaystackSearchApphook
+ apphook_pool.register(HaystackSearchApphook)
View
@@ -2,7 +2,6 @@
from django.utils.translation import ugettext_lazy as _
from cms.app_base import CMSApp
-from cms.apphook_pool import apphook_pool
from haystack.views import search_view_factory
@@ -12,4 +11,3 @@ class HaystackSearchApphook(CMSApp):
url('^$', search_view_factory(), name='haystack-search'),
),]
-apphook_pool.register(HaystackSearchApphook)
View
@@ -11,6 +11,15 @@ Usage
After installing django-cms-search through your package manager of choice, add
:mod:`cms_search` to your :setting:`INSTALLED_APPS`. That's it.
+.. warning::
+
+ Since version 0.5, the ``HaystackSearchApphook`` is not registered automatically
+ anymore. If you want do use the default app hook provided by django-cms-search,
+ add this (e.g. in ``models.py``)::
+
+ from cms_search.cms_app import HaystackSearchApphook
+ apphook_pool.register(HaystackSearchApphook)
+
For setting up Haystack, please refer to their
`documentation <http://readthedocs.org/docs/django-haystack/en/latest/>`_.
@@ -142,4 +151,4 @@ Default: :class:`haystack.indexes.SearchIndex <haystack:SearchIndex>`
This setting can be used to add custom fields to the search index if the
included fields do not suffice. Make sure to provide the full path
-to your :class:`haystack:SearchIndex` subclass.
+to your :class:`haystack:SearchIndex` subclass.

0 comments on commit 139224b

Please sign in to comment.