id,summary,reporter,owner,description,type,status,component,version,severity,resolution,keywords,cc,stage,has_patch,needs_docs,needs_tests,needs_better_patch,easy,ui_ux
12285,Confusing error message when ModelForm does not have model set,Erik Allik,Karen Tracey,"When instantiating a {{{ModelForm}}} whose {{{Meta.model}}} has not been set (i.e. the {{{ModelForm}}} class was extended instead of {{{Form}}}), the exception message is:
{{{'NoneType' object is not callable}}}
This message originates from {{{django/forms/models.py in __init__ line 218}}} that says {{{self.instance = opts.model()}}}.
Adding an {{{if}}} there with a decent message such as {{{""Model class not set for ModelForm""}}} would be the fix.
",,closed,Forms,1.1,,fixed,,brian@…,Ready for checkin,1,0,0,0,,