diff options
| author | Karen Tracey <kmtracey@gmail.com> | 2009-02-16 18:34:28 +0000 |
|---|---|---|
| committer | Karen Tracey <kmtracey@gmail.com> | 2009-02-16 18:34:28 +0000 |
| commit | ecc55503f40e375b957aa9dfaf8db34e8f348f63 (patch) | |
| tree | f1e7dabc5b12ef59b81a10f35d57bb11152e7ebd /django/db/models/fields | |
| parent | 11bfe7236609dad4c88d8352f64ed7a2888da936 (diff) | |
Fixed #10196: Restored setting of image file width and height fields lost in r9766, and added tests for this function. Thanks to vicvicvic for the ticket and patch and for Alex for reminding me not to break non-PIL-boxes with the new tests.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@9841 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'django/db/models/fields')
| -rw-r--r-- | django/db/models/fields/files.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/django/db/models/fields/files.py b/django/db/models/fields/files.py index 878d09c976..f9bfc9d03f 100644 --- a/django/db/models/fields/files.py +++ b/django/db/models/fields/files.py @@ -132,7 +132,7 @@ class FileDescriptor(object): # have the FieldFile interface added to them file_copy = copy.copy(file) file_copy.__class__ = type(file.__class__.__name__, - (file.__class__, FieldFile), {}) + (file.__class__, self.field.attr_class), {}) file_copy.instance = instance file_copy.field = self.field file_copy.storage = self.field.storage |
