Ticket #10249: 10249.diff

File 10249.diff, 706 bytes (added by Karen Tracey, 15 years ago)
  • django/db/models/fields/files.py

     
    136136            # have the FieldFile interface added to them
    137137            file_copy = copy.copy(file)
    138138            file_copy.__class__ = type(file.__class__.__name__,
    139                                        (file.__class__, self.field.attr_class), {})
     139                                       (self.field.attr_class, file.__class__), {})
    140140            file_copy.instance = instance
    141141            file_copy.field = self.field
    142142            file_copy.storage = self.field.storage
Back to Top