From da0fef756c0e47e549cba1edc1f3900973e2b70a Mon Sep 17 00:00:00 2001 From: Gary Wilson Jr Date: Fri, 14 Sep 2007 02:54:12 +0000 Subject: [PATCH] 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 --- django/db/models/fields/__init__.py | 1 + 1 file changed, 1 insertion(+) diff --git a/django/db/models/fields/__init__.py b/django/db/models/fields/__init__.py index 74b08884da..795f8936bd 100644 --- a/django/db/models/fields/__init__.py +++ b/django/db/models/fields/__init__.py @@ -848,6 +848,7 @@ class ImageField(FileField): def formfield(self, **kwargs): defaults = {'form_class': forms.ImageField} + defaults.update(kwargs) return super(ImageField, self).formfield(**defaults) class IntegerField(Field):