Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Use RealTimeSearchIndex again.

  • Loading branch information...
commit 07491b94aa4e770fd571e93c6331a030ded0b56a 1 parent bfcf089
@jezdez jezdez authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  threaded_messages/search_indexes.py
View
2  threaded_messages/search_indexes.py
@@ -1,7 +1,7 @@
from haystack import indexes
from .models import Thread
-class ThreadIndex(indexes.SearchIndex, indexes.Indexable):
+class ThreadIndex(indexes.RealTimeSearchIndex, indexes.Indexable):
text = indexes.CharField(document=True, use_template=True)
participants = indexes.MultiValueField()
last_message = indexes.DateTimeField(model_attr='latest_msg__sent_at')
Please sign in to comment.
Something went wrong with that request. Please try again.