Ticket #1858: get_file_size.diff

File get_file_size.diff, 514 bytes (added by tom@…, 18 years ago)
  • django/db/models/base.py

     
    298298        return ''
    299299
    300300    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))
    302302
    303303    def _save_FIELD_file(self, field, filename, raw_contents):
    304304        directory = field.get_directory_name()
Back to Top