From d6df75e1d2c961f6b6ebc4ccc984e1a1bfe216b0 Mon Sep 17 00:00:00 2001 From: Bertrand Bordage Date: Mon, 30 Oct 2017 10:38:45 +0100 Subject: [PATCH] Makes `PageChooserPanel` search in all fields. (#3979) --- wagtail/wagtailadmin/views/chooser.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wagtail/wagtailadmin/views/chooser.py b/wagtail/wagtailadmin/views/chooser.py index 39fe4987e7..c0924b6b57 100644 --- a/wagtail/wagtailadmin/views/chooser.py +++ b/wagtail/wagtailadmin/views/chooser.py @@ -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()