From 338a46eb417f0f2c2cd1418ab9ccbba77203553f Mon Sep 17 00:00:00 2001 From: Nick Sergeant Date: Sun, 20 Jan 2013 13:42:18 -0500 Subject: [PATCH] Haystack name change. --- settings.py | 1 + snipts/search_indexes.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/settings.py b/settings.py index a037eef..cd1b93c 100644 --- a/settings.py +++ b/settings.py @@ -168,6 +168,7 @@ HAYSTACK_CONNECTIONS = { 'ENGINE': 'haystack.backends.simple_backend.SimpleEngine', }, } +HAYSTACK_SIGNAL_PROCESSOR = 'haystack.signals.RealtimeSignalProcessor' # Account settings LOGIN_REDIRECT_URL = '/' diff --git a/snipts/search_indexes.py b/snipts/search_indexes.py index 8f7f1e1..270e301 100644 --- a/snipts/search_indexes.py +++ b/snipts/search_indexes.py @@ -3,7 +3,7 @@ from haystack import indexes from snipts.models import Snipt -class SniptIndex(indexes.RealtimeSignalProcessor, indexes.Indexable): +class SniptIndex(indexes.SearchIndex, indexes.Indexable): text = indexes.CharField(document=True, use_template=True) author = indexes.CharField(model_attr='user') pub_date = indexes.DateTimeField(model_attr='created')