mirror of
https://github.com/wagtail/wagtail.git
synced 2024-11-29 09:33:54 +01:00
Makes PageChooserPanel
search in all fields. (#3979)
This commit is contained in:
parent
25f60060d3
commit
d6df75e1d2
@ -162,7 +162,7 @@ def search(request, parent_page_id=None):
|
|||||||
)
|
)
|
||||||
pages = filter_page_type(pages, desired_classes)
|
pages = filter_page_type(pages, desired_classes)
|
||||||
pages = pages.specific()
|
pages = pages.specific()
|
||||||
pages = pages.search(search_form.cleaned_data['q'], fields=['title'])
|
pages = pages.search(search_form.cleaned_data['q'])
|
||||||
else:
|
else:
|
||||||
pages = pages.none()
|
pages = pages.none()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user