Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

newforms-admin: Fixed #7617 -- Adjusted the call to ModelFormMetaclas…

…s.__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
  • Loading branch information...
commit 21974955c4fb3df6ee9308d27c180df47dc3a660 1 parent 8c85132
Brian Rosner brosner authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 django/newforms/models.py
4 django/newforms/models.py
View
@@ -290,8 +290,8 @@ class Meta:
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 ##############################################################
Please sign in to comment.
Something went wrong with that request. Please try again.