Author: gwilson
Date: 2007-09-13 21:54:12 -0500 (Thu, 13 Sep 2007)
New Revision: 6154
Modified:
django/trunk/django/db/models/fields/__init__.py
Log:
Fixed #5123 -- Fixed ImageField to pass along keyword arguments in its
formfield method.
Modified: django/trunk/django/db/models/fields/__init__.py
===================================================================
--- django/trunk/django/db/models/fields/__init__.py 2007-09-14 02:49:21 UTC
(rev 6153)
+++ django/trunk/django/db/models/fields/__init__.py 2007-09-14 02:54:12 UTC
(rev 6154)
@@ -848,6 +848,7 @@
def formfield(self, **kwargs):
defaults = {'form_class': forms.ImageField}
+ defaults.update(kwargs)
return super(ImageField, self).formfield(**defaults)
class IntegerField(Field):
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---