diff options
Diffstat (limited to 'django')
| -rw-r--r-- | django/db/models/base.py | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/django/db/models/base.py b/django/db/models/base.py index d7a9932388..fd7250cdb0 100644 --- a/django/db/models/base.py +++ b/django/db/models/base.py @@ -404,8 +404,6 @@ class Model(six.with_metaclass(ModelBase, object)): u = six.text_type(self) except (UnicodeEncodeError, UnicodeDecodeError): u = '[Bad Unicode data]' - if not six.PY3: - u = u.encode('ascii', 'replace') return smart_str('<%s: %s>' % (self.__class__.__name__, u)) def __str__(self): |
