Haystack name change.
parent
1a7ffbcbbc
commit
338a46eb41
|
@ -168,6 +168,7 @@ HAYSTACK_CONNECTIONS = {
|
|||
'ENGINE': 'haystack.backends.simple_backend.SimpleEngine',
|
||||
},
|
||||
}
|
||||
HAYSTACK_SIGNAL_PROCESSOR = 'haystack.signals.RealtimeSignalProcessor'
|
||||
|
||||
# Account settings
|
||||
LOGIN_REDIRECT_URL = '/'
|
||||
|
|
|
@ -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')
|
||||
|
|
Loading…
Reference in New Issue