1
0
mirror of https://github.com/django/django.git synced 2025-11-07 07:15:35 +00:00

[py3] Removed redundant __str__ methods.

These classes already have an identical __unicode__ method, which
will be used after an upcoming refactoring.
This commit is contained in:
Aymeric Augustin
2012-08-11 22:18:09 +02:00
parent dbb63e56ea
commit 2bb2eecb63
6 changed files with 0 additions and 18 deletions

View File

@@ -17,9 +17,6 @@ class File(FileProxyMixin):
if hasattr(file, 'mode'):
self.mode = file.mode
def __str__(self):
return smart_bytes(self.name or '')
def __unicode__(self):
return smart_text(self.name or '')