mirror of
https://github.com/django/django.git
synced 2025-10-29 16:46:11 +00:00
Fixed #30184 -- Removed ellipsis characters from shell output strings.
Partially reverted 50b8493581 (refs #29654)
to avoid a crash when the user shell doesn't support non-ASCII characters.
This commit is contained in:
@@ -248,7 +248,7 @@ class QuerySet:
|
||||
def __repr__(self):
|
||||
data = list(self[:REPR_OUTPUT_SIZE + 1])
|
||||
if len(data) > REPR_OUTPUT_SIZE:
|
||||
data[-1] = "…(remaining elements truncated)…"
|
||||
data[-1] = "...(remaining elements truncated)..."
|
||||
return '<%s %r>' % (self.__class__.__name__, data)
|
||||
|
||||
def __len__(self):
|
||||
|
||||
Reference in New Issue
Block a user