﻿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
6162	"ModelForm.__init__() should match argument signature of ""standard"" forms"	James Bennett	nobody	"Currently, `ModelForm.__init__()` differs from the `__init__()` of a ""standard"" newforms form in two ways:

 1. It requires an instance of the model to be passed in, and cannot fall back to a default.
 2. It requires this to be the first positional argument, while on ""standard"" forms the first positional argument is `data`.

A number of use cases -- particularly generic form-handling code -- would be made much simpler if instead `instance` was optional (with `ModelForm` falling back to creating an instance based on `_meta.model` if it's not supplied), and if it was moved further back in the list of arguments so as to allow code to work with the standard argument signature of `BaseForm.__init__()` as much as possible."		closed	Forms	dev		fixed	modelform		Design decision needed	1	0	0	0	0	0
