[Answered ]-DJANGO : Inlineformset specifying fields / exclude

2👍

Yes, you can:

https://docs.djangoproject.com/en/1.3/topics/forms/modelforms/#controlling-which-fields-are-used-with-fields-and-exclude

But:

BusinessFormSet = inlineformset_factory(Address, Person, exclude = ['middlen'])

exclude must be a iterable object like a list

Leave a comment