Ticket #10196: 9766-fix.diff
File 9766-fix.diff, 699 bytes (added by , 16 years ago) |
---|
-
django/db/models/fields/files.py
diff --git a/django/db/models/fields/files.py b/django/db/models/fields/files.py index ce76a14..dd8ab2c 100644
a b class FileDescriptor(object): 132 132 # have the FieldFile interface added to them 133 133 file_copy = copy.copy(file) 134 134 file_copy.__class__ = type(file.__class__.__name__, 135 (file.__class__, FieldFile), {})135 (file.__class__, self.field.attr_class), {}) 136 136 file_copy.instance = instance 137 137 file_copy.field = self.field 138 138 file_copy.storage = self.field.storage