Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Browse files

Fix initialisation of ImageField super classes.

Fixes #16548, with thanks to pyriku.

git-svn-id: bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 1f770c62da69866835bb8fc9355128b6b493a97e 1 parent 6cd9023
@malcolmt malcolmt authored
Showing with 3 additions and 2 deletions.
  1. +3 −2 django/db/models/fields/
5 django/db/models/fields/
@@ -320,9 +320,10 @@ class ImageField(FileField):
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)

0 comments on commit 1f770c6

Please sign in to comment.
Something went wrong with that request. Please try again.