0
0
mirror of https://github.com/wagtail/wagtail.git synced 2024-12-01 11:41:20 +01:00

Makes PageChooserPanel search in all fields. (#3979)

This commit is contained in:
Bertrand Bordage 2017-10-30 10:38:45 +01:00 committed by Karl Hobley
parent 25f60060d3
commit d6df75e1d2

View File

@ -162,7 +162,7 @@ def search(request, parent_page_id=None):
)
pages = filter_page_type(pages, desired_classes)
pages = pages.specific()
pages = pages.search(search_form.cleaned_data['q'], fields=['title'])
pages = pages.search(search_form.cleaned_data['q'])
else:
pages = pages.none()