mirror of
https://github.com/django/django.git
synced 2025-10-29 08:36:09 +00:00
Fixed #25508 -- Modified QuerySet.__repr__() to disambiguate it from a list.
This commit is contained in:
@@ -234,7 +234,7 @@ class QuerySet(object):
|
||||
data = list(self[:REPR_OUTPUT_SIZE + 1])
|
||||
if len(data) > REPR_OUTPUT_SIZE:
|
||||
data[-1] = "...(remaining elements truncated)..."
|
||||
return repr(data)
|
||||
return '<QuerySet %r>' % data
|
||||
|
||||
def __len__(self):
|
||||
self._fetch_all()
|
||||
|
||||
Reference in New Issue
Block a user