Ticket #8534: django-8534-filefield-size.patch
File django-8534-filefield-size.patch, 512 bytes (added by , 16 years ago) |
---|
-
django/db/models/fields/files.py
=== modified file 'django/db/models/fields/files.py'
51 51 return self.storage.path(self.name) 52 52 path = property(_get_path) 53 53 54 def _get_size(self): 55 self._require_file() 56 return self.storage.size(self.name) 57 size = property(_get_size) 58 54 59 def _get_url(self): 55 60 self._require_file() 56 61 return self.storage.url(self.name)