Skip to content

Commit

Permalink
Tweaked repr of search results to diffrentiate them from QuerySets an…
Browse files Browse the repository at this point in the history
…d lists

Search results sets are now wrapped with ``<SearchResults >``
  • Loading branch information
kaedroho committed Feb 12, 2016
1 parent 3f5586e commit 75bad9d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wagtail/wagtailsearch/backends/base.py
Expand Up @@ -183,7 +183,7 @@ def __repr__(self):
data = list(self[:21])
if len(data) > 20:
data[-1] = "...(remaining elements truncated)..."
return repr(data)
return '<SearchResults %r>' % data


class BaseSearch(object):
Expand Down

0 comments on commit 75bad9d

Please sign in to comment.