1π
β
The get_form_class()
method, should return the class not object/instance of the form class. So your method can be updated to
def get_form_class(self):
return ProposalSetForm
However, Iβm not sure how will this pass parameters that you need to __init__()
of the class.
May be you can define get_form()
rather than get_form_class()
and return appropriate form instance.
π€Rohan
- [Answer]-Two different templates for django admin
- [Answer]-Django: Can I do a div ajax refresh in template on object votes and IDs without going to Views?
- [Answer]-Sending data from Django Function to Javascript (no refreshing)
- [Answer]-Django coalesce return data type
- [Answer]-Django/Heroku: favicon renders as dead image when going to example.com/favicon.ico
Source:stackexchange.com