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):