﻿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
21259	Wizard sets queryset instead of instance on InlineFormset	banderkat@…	nobody	"Because {{{InlineFormSet}}} subclasses {{{BaseModelFormSet}}}, the wizard thinks it's like any {{{BaseModelFormSet}}} and incorrectly initializes the form by setting the form's {{{queryset}}} instead of the form's {{{instance}}}.  An {{{InlineFormSet}}} needs to have its instance set to the parent model object instead.

Currently, attempting to set {{{self.instance}}} for the {{{InlineFormSet}}} in the wizard's {{{get_form_instance}}} results in an {{{AttributeError}}} saying ""object has no attribute 'none'"" as the wizard attempts to set the form's queryset (instead of instance) with it's {{{self.instance}}}.
 
I have a fix to propose here:
[https://github.com/flibbertigibbet/django/commit/885798aa250544bd5c6d3a7325dc5c20c0795f2c]

"	Bug	closed	contrib.formtools	dev	Normal	fixed	wizard, InlineFormSet		Accepted	1	0	0	0	0	0
