From 25b9139a7cad6574f99ad3a316920f56bfedd855 Mon Sep 17 00:00:00 2001 From: alistairclark Date: Fri, 27 Nov 2020 12:46:45 +0000 Subject: [PATCH] Changes repr method of Phrase to label the object Phrase instead of PlainText --- wagtail/search/query.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wagtail/search/query.py b/wagtail/search/query.py index 0d7bd82ebc..27c7d6ac39 100644 --- a/wagtail/search/query.py +++ b/wagtail/search/query.py @@ -45,7 +45,7 @@ class Phrase(SearchQuery): self.query_string = query_string def __repr__(self): - return ''.format(repr(self.query_string)) + return '<Phrase {}>'.format(repr(self.query_string)) class MatchAll(SearchQuery):