Fixed #5123 -- Fixed ImageField to pass along keyword arguments in its formfield method.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@6154 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Gary Wilson Jr 2007-09-14 02:54:12 +00:00
parent 09145d2e5f
commit da0fef756c
1 changed files with 1 additions and 0 deletions

View File

@ -848,6 +848,7 @@ class ImageField(FileField):
def formfield(self, **kwargs): def formfield(self, **kwargs):
defaults = {'form_class': forms.ImageField} defaults = {'form_class': forms.ImageField}
defaults.update(kwargs)
return super(ImageField, self).formfield(**defaults) return super(ImageField, self).formfield(**defaults)
class IntegerField(Field): class IntegerField(Field):