Ticket #9631: file_size.diff

File file_size.diff, 461 bytes (added by Peter Sagerson, 16 years ago)

Change in FieldFile._get_size

  • django/db/models/fields/files.py

     
    5555    url = property(_get_url)
    5656
    5757    def _get_size(self):
    58         self._require_file()
    59         return self.storage.size(self.name)
     58        return self.file.size
    6059    size = property(_get_size)
    6160
    6261    def open(self, mode='rb'):
Back to Top