Ticket #10300: 10300.diff
File 10300.diff, 543 bytes (added by , 16 years ago) |
---|
-
django/db/models/fields/files.py
65 65 66 66 def _get_size(self): 67 67 self._require_file() 68 return self.storage.size(self.name) 68 if self._committed: 69 return self.storage.size(self.name) 70 else: 71 return super(FieldFile, self).size 69 72 size = property(_get_size) 70 73 71 74 def open(self, mode='rb'):