Ticket #1858: get_file_size.diff
File get_file_size.diff, 514 bytes (added by , 19 years ago) |
---|
-
django/db/models/base.py
298 298 return '' 299 299 300 300 def _get_FIELD_size(self, field): 301 return os.path.getsize(self._ _get_FIELD_filename(field))301 return os.path.getsize(self._get_FIELD_filename(field)) 302 302 303 303 def _save_FIELD_file(self, field, filename, raw_contents): 304 304 directory = field.get_directory_name()