Ticket #14814: r14751_field_file.diff

File r14751_field_file.diff, 487 bytes (added by dimier, 14 years ago)
  • django/db/models/fields/files.py

     
    102102    save.alters_data = True
    103103
    104104    def delete(self, save=True):
     105        if not self:
     106            return
     107
    105108        # Only close the file if it's already open, which we know by the
    106109        # presence of self._file
    107110        if hasattr(self, '_file'):
Back to Top