Thank you so much for this tut. How can i limit the number of forms in the form set that can be added?
When you create you inline formset you can limit the number of forms in the formset with max_num parameter
CollectionTitleFormSet = inlineformset_factory(
Collection, CollectionTitle, form=CollectionTitleForm,
fields=['name', 'language'], extra=1, max_num=3, can_delete=True
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.