mirror of
https://github.com/django/django.git
synced 2025-09-26 20:19:16 +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:
parent
f63811f481
commit
2bd8df243a
19 changed files with 58 additions and 58 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue