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:
@@ -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 '')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user