From ecc55503f40e375b957aa9dfaf8db34e8f348f63 Mon Sep 17 00:00:00 2001 From: Karen Tracey Date: Mon, 16 Feb 2009 18:34:28 +0000 Subject: 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 --- django/db/models/fields/files.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'django') 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 -- cgit v1.3