Django

Code

Changeset 7854

Show
Ignore:
Timestamp:
07/06/08 10:28:05 (5 months ago)
Author:
brosner
Message:

newforms-admin: Fixed #7617 -- Adjusted the call to ModelFormMetaclass?.new in modelform_factory to work with the new signature introduced in [7847].

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/branches/newforms-admin/django/newforms/models.py

    r7853 r7854  
    291291    setattr(Meta, 'exclude', exclude) 
    292292    class_name = model.__name__ + 'Form' 
    293     return ModelFormMetaclass(class_name, (form,), {'Meta': Meta}, 
    294                               formfield_callback=formfield_callback
     293    return ModelFormMetaclass(class_name, (form,), {'Meta': Meta,  
     294                              'formfield_callback': formfield_callback}
    295295 
    296296