Ticket #9631: file_size.diff
File file_size.diff, 461 bytes (added by , 16 years ago) |
---|
-
django/db/models/fields/files.py
55 55 url = property(_get_url) 56 56 57 57 def _get_size(self): 58 self._require_file() 59 return self.storage.size(self.name) 58 return self.file.size 60 59 size = property(_get_size) 61 60 62 61 def open(self, mode='rb'):