Make tests.EventPage use search_fields

This commit is contained in:
Karl Hobley 2014-08-18 16:06:00 +01:00
parent 9cd1acd4a9
commit 269d156a26

View file

@ -228,8 +228,11 @@ class EventPage(Page):
related_name='+'
)
indexed_fields = ('get_audience_display', 'location', 'body')
search_name = "Event"
search_fields = (
indexed.SearchField('get_audience_display'),
indexed.SearchField('location'),
indexed.SearchField('body'),
)
password_required_template = 'tests/event_page_password_required.html'