Ticket #13750: 13750_simple_approach_solution.diff
File 13750_simple_approach_solution.diff, 514 bytes (added by , 10 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 ba79e92..2ed5b3e 100644
a b class FileDescriptor(object): 220 220 file.field = self.field 221 221 file.storage = self.field.storage 222 222 223 if isinstance(file, ImageFieldFile) and hasattr(file, 'field'): 224 file.open() 225 223 226 # That was fun, wasn't it? 224 227 return instance.__dict__[self.field.name] 225 228