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