From: Radek Czajka Date: Mon, 31 Mar 2014 14:47:49 +0000 (+0200) Subject: Haystack 2 compatibility. X-Git-Tag: 0.4.1 X-Git-Url: https://git.mdrn.pl/django-migdal.git/commitdiff_plain/e335d8d992b0e8c9f8926c1fe92b3526c3fa1508?ds=sidebyside;hp=886a2d96c665346ad440e3238bff73795c63ab39 Haystack 2 compatibility. --- diff --git a/migdal/search_indexes.py b/migdal/search_indexes.py index 5e3f7d4..d809e7b 100644 --- a/migdal/search_indexes.py +++ b/migdal/search_indexes.py @@ -5,7 +5,7 @@ from fnpdjango.utils.models.translation import add_translatable_index, localize_ from migdal.models import Entry -class EntryIndex(indexes.RealTimeSearchIndex, indexes.Indexable): +class EntryIndex(indexes.SearchIndex, indexes.Indexable): text = indexes.CharField(null=True, model_attr=localize_field('body', settings.LANGUAGE_CODE), document=True)