Author: mtredinnick
Date: 2011-08-22 21:05:47 -0700 (Mon, 22 Aug 2011)
New Revision: 16658

Modified:
   django/trunk/django/db/models/fields/files.py
Log:
Fix initialisation of ImageField super classes.

Fixes #16548, with thanks to pyriku.

Modified: django/trunk/django/db/models/fields/files.py
===================================================================
--- django/trunk/django/db/models/fields/files.py       2011-08-23 03:51:10 UTC 
(rev 16657)
+++ django/trunk/django/db/models/fields/files.py       2011-08-23 04:05:47 UTC 
(rev 16658)
@@ -320,9 +320,10 @@
     descriptor_class = ImageFileDescriptor
     description = _("File path")
 
-    def __init__(self, verbose_name=None, name=None, width_field=None, 
height_field=None, **kwargs):
+    def __init__(self, verbose_name=None, name=None, width_field=None,
+            height_field=None, **kwargs):
         self.width_field, self.height_field = width_field, height_field
-        FileField.__init__(self, verbose_name, name, **kwargs)
+        super(ImageField, self).__init__(verbose_name, name, **kwargs)
 
     def contribute_to_class(self, cls, name):
         super(ImageField, self).contribute_to_class(cls, name)

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.

Reply via email to