Ticket #24664: TemporaryFileUploadHandler_new_file_fix_parent_call.patch

File TemporaryFileUploadHandler_new_file_fix_parent_call.patch, 914 bytes (added by David Danier, 9 years ago)
  • django/core/files/uploadhandler.py

    diff --git a/django/core/files/uploadhandler.py b/django/core/files/uploadhandler.py
    index e5a2667..034b998 100644
    a b class TemporaryFileUploadHandler(FileUploadHandler):  
    139139    def __init__(self, *args, **kwargs):
    140140        super(TemporaryFileUploadHandler, self).__init__(*args, **kwargs)
    141141
    142     def new_file(self, file_name, *args, **kwargs):
     142    def new_file(self, *args, **kwargs):
    143143        """
    144144        Create the file object to append to as data is coming in.
    145145        """
    146         super(TemporaryFileUploadHandler, self).new_file(file_name, *args, **kwargs)
     146        super(TemporaryFileUploadHandler, self).new_file(*args, **kwargs)
    147147        self.file = TemporaryUploadedFile(self.file_name, self.content_type, 0, self.charset, self.content_type_extra)
    148148
    149149    def receive_data_chunk(self, raw_data, start):
Back to Top