fnp
/
django-migdal.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix
[django-migdal.git]
/
migdal
/
search_indexes.py
diff --git
a/migdal/search_indexes.py
b/migdal/search_indexes.py
index
5e3f7d4
..
79727b1
100644
(file)
--- a/
migdal/search_indexes.py
+++ b/
migdal/search_indexes.py
@@
-5,7
+5,7
@@
from fnpdjango.utils.models.translation import add_translatable_index, localize_
from migdal.models import Entry
from migdal.models import Entry
-class EntryIndex(indexes.
RealTime
SearchIndex, indexes.Indexable):
+class EntryIndex(indexes.SearchIndex, indexes.Indexable):
text = indexes.CharField(null=True,
model_attr=localize_field('body', settings.LANGUAGE_CODE),
document=True)
text = indexes.CharField(null=True,
model_attr=localize_field('body', settings.LANGUAGE_CODE),
document=True)
@@
-15,10
+15,6
@@
class EntryIndex(indexes.RealTimeSearchIndex, indexes.Indexable):
def get_model(self):
return Entry
def get_model(self):
return Entry
- def index_queryset(self):
- """Used when the entire index for model is updated."""
- return self.get_model().objects.all()
-
add_translatable_index(EntryIndex, {
'title': indexes.CharField(null=True),
add_translatable_index(EntryIndex, {
'title': indexes.CharField(null=True),