﻿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
21006	Add an example of the formset argument for inlineformset_factory	treysta@…	Tianyi Wang	"https://docs.djangoproject.com/en/1.5/topics/forms/modelforms/#overriding-clean-on-an-inlineformset

It looks like there is a somewhat relevant piece of information missing from this section. It leaves out the fact that you also must specify which formset to use when creating your inlineformset in the view:

Currently:

""See Overriding clean() on a ModelFormSet, but subclass BaseInlineFormSet rather than BaseModelFormSet.""

Suggestion:

""See Overriding clean() on a ModelFormSet, but subclass BaseInlineFormSet rather than BaseModelFormSet. You must also specify which formset to use when creating your inlineformset in your view:""
{{{
>>> from django.forms.models import inlineformset_factory
>>> BookFormSet = inlineformset_factory(Author, Book, formset= MyInlineFormSet)
>>> author = Author.objects.get(name=u'Mike Royko')
>>> formset = BookFormSet(instance=author)
}}}"	Cleanup/optimization	closed	Documentation	1.5	Normal	fixed	afraid-to-commit	treysta@… Daniele Procida	Accepted	0	0	0	0	0	0
