summaryrefslogtreecommitdiff
path: root/django/newforms
diff options
context:
space:
mode:
authorBrian Rosner <brosner@gmail.com>2008-07-06 15:28:05 +0000
committerBrian Rosner <brosner@gmail.com>2008-07-06 15:28:05 +0000
commit21974955c4fb3df6ee9308d27c180df47dc3a660 (patch)
tree49a636d581cf9143a73e9bf022387e5c8afe1571 /django/newforms
parent8c8513281e9ed29840a082c05482a87d33f59f96 (diff)
newforms-admin: Fixed #7617 -- Adjusted the call to ModelFormMetaclass.__new__ in modelform_factory to work with the new signature introduced in [7847].
git-svn-id: http://code.djangoproject.com/svn/django/branches/newforms-admin@7854 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'django/newforms')
-rw-r--r--django/newforms/models.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/django/newforms/models.py b/django/newforms/models.py
index da2744e239..845ba975bb 100644
--- a/django/newforms/models.py
+++ b/django/newforms/models.py
@@ -290,8 +290,8 @@ def modelform_factory(model, form=ModelForm, fields=None, exclude=None,
setattr(Meta, 'fields', fields)
setattr(Meta, 'exclude', exclude)
class_name = model.__name__ + 'Form'
- return ModelFormMetaclass(class_name, (form,), {'Meta': Meta},
- formfield_callback=formfield_callback)
+ return ModelFormMetaclass(class_name, (form,), {'Meta': Meta,
+ 'formfield_callback': formfield_callback})
# ModelFormSets ##############################################################