mirror of
https://github.com/django/django.git
synced 2025-09-23 02:33:31 +00:00
Fixed #25508 -- Modified QuerySet.__repr__() to disambiguate it from a list.
This commit is contained in:
parent
3543fec3b7
commit
e0837f2cb1
20 changed files with 185 additions and 184 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue