diff --git a/conference/search_indexes.py b/conference/search_indexes.py index 92a0b384..d778e459 100644 --- a/conference/search_indexes.py +++ b/conference/search_indexes.py @@ -27,6 +27,8 @@ class ConferenceIndex(indexes.SearchIndex, indexes.Indexable, ExpoSearchMixin): members_choice = indexes.IntegerField() visitors_choice = indexes.IntegerField() price_choice = indexes.IntegerField() + expohit = indexes.BooleanField(model_attr='expohit') + rating = indexes.MultiValueField() def prepare_form_name(self, obj): return None diff --git a/events/forms.py b/events/forms.py index 59a83ec8..548d71ec 100644 --- a/events/forms.py +++ b/events/forms.py @@ -1,6 +1,7 @@ # -*- coding: utf-8 -*- import re -from itertools import chain +import operator +from itertools import chain, combinations from collections import namedtuple from datetime import datetime from datetime import timedelta @@ -47,7 +48,7 @@ class FilterCheckboxSelectMultiple(forms.CheckboxSelectMultiple): if value is None: value = [] has_id = attrs and 'id' in attrs final_attrs = self.build_attrs(attrs, name=name) - output = ['