mirror of
https://github.com/Hopiu/wagtail.git
synced 2026-05-09 16:04:45 +00:00
Make tests.EventPage use search_fields
This commit is contained in:
parent
9cd1acd4a9
commit
269d156a26
1 changed files with 5 additions and 2 deletions
|
|
@ -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'
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue