Ticket #10249: 10249.diff
File 10249.diff, 706 bytes (added by , 16 years ago) |
---|
-
django/db/models/fields/files.py
136 136 # have the FieldFile interface added to them 137 137 file_copy = copy.copy(file) 138 138 file_copy.__class__ = type(file.__class__.__name__, 139 ( file.__class__, self.field.attr_class), {})139 (self.field.attr_class, file.__class__), {}) 140 140 file_copy.instance = instance 141 141 file_copy.field = self.field 142 142 file_copy.storage = self.field.storage