Reputation: 6194
can i simply do this by
BusinessFormSet = inlineformset_factory(Address, Person, exclude = 'middlen')
what if not, please let me know how i should go about specifying which fields i want to render?
Upvotes: 1
Views: 317
Reputation: 31532
Yes, you can:
But:
BusinessFormSet = inlineformset_factory(Address, Person, exclude = ['middlen'])
exclude must be a iterable object like a list
Upvotes: 2