mirror of
				https://github.com/django/django.git
				synced 2025-10-31 09:41:08 +00:00 
			
		
		
		
	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:
		| @@ -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): | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user