Haystack name change.

master
Nick Sergeant 2013-01-20 13:42:18 -05:00
parent 1a7ffbcbbc
commit 338a46eb41
2 changed files with 2 additions and 1 deletions

View File

@ -168,6 +168,7 @@ HAYSTACK_CONNECTIONS = {
'ENGINE': 'haystack.backends.simple_backend.SimpleEngine',
},
}
HAYSTACK_SIGNAL_PROCESSOR = 'haystack.signals.RealtimeSignalProcessor'
# Account settings
LOGIN_REDIRECT_URL = '/'

View File

@ -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')