Ticket #7683: 7683.diff
File 7683.diff, 687 bytes (added by , 16 years ago) |
---|
-
django/db/models/base.py
528 528 full_filename = self._get_FIELD_filename(field) 529 529 if hasattr(raw_field, 'temporary_file_path'): 530 530 # This file has a file path that we can move. 531 file_move_safe(raw_field.temporary_file_path(), full_filename) 531 532 raw_field.close() 532 file_move_safe(raw_field.temporary_file_path(), full_filename)533 533 else: 534 534 # This is a normal uploadedfile that we can stream. 535 535 fp = open(full_filename, 'wb')