Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Subclass RealTimeSearchIndex vice normal SearchIndex.

  • Loading branch information...
commit 396ddcfa51e855f97cc9acadd818f7f83ca86eaa 1 parent 6d0930e
@mattdeboard authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  yuk/search_indexes.py
View
2  yuk/search_indexes.py
@@ -2,7 +2,7 @@
from haystack import indexes
from yuk.models import Item
-class ItemIndex(indexes.SearchIndex, indexes.Indexable):
+class ItemIndex(indexes.RealTimeSearchIndex, indexes.Indexable):
text = indexes.CharField(document=True, use_template=True)
author = indexes.CharField(model_attr='user')
private = indexes.CharField(model_attr='privacy_mode')
Please sign in to comment.
Something went wrong with that request. Please try again.