klipstein/dojango — Issue #52: 52 - modelform_factory 
Author: klipstein
Created: 2011-11-06 13:00:34+00:00
State: open

What steps will reproduce the problem?
1. from dojango.forms.models import modelform_factory
2. in some view "form = modelform_factory(model=MODEL)"

What is the expected output? What do you see instead?
django = a new form will be created
dojango = "modelform_factory() got an unexpected keyword argument 'formset'"

What version of the product are you using? On what operating system?
dojango.VERSION = (0, 5, 0, 'alpha', 0)

Please provide any additional information below.
I found two solutions that worked for me.
1 - Remove the line "kwargs [" formset "] = BaseModelForm"
2 - Change the parameter to "kwargs [" form "] = ModelForm"
I have attached the diff file with my own fix using solution 2.

Original link: http://code.google.com/p/dojango/issues/detail?id=52