Ticket #7683: 7683.diff

File 7683.diff, 687 bytes (added by gorman, 16 years ago)

Patch for #7683

  • django/db/models/base.py

     
    528528        full_filename = self._get_FIELD_filename(field)
    529529        if hasattr(raw_field, 'temporary_file_path'):
    530530            # This file has a file path that we can move.
     531            file_move_safe(raw_field.temporary_file_path(), full_filename)
    531532            raw_field.close()
    532             file_move_safe(raw_field.temporary_file_path(), full_filename)
    533533        else:
    534534            # This is a normal uploadedfile that we can stream.
    535535            fp = open(full_filename, 'wb')
Back to Top