#19640: inlineformset_factory is not documented well like other formset_factories -------------------------------------+------------------------------------- Reporter: wim@… | Owner: nobody Type: | Status: new Cleanup/optimization | Version: master Component: Documentation | Keywords: inlineformset_factory Severity: Normal | documentation Triage Stage: Unreviewed | Has patch: 0 Easy pickings: 1 | UI/UX: 0 -------------------------------------+------------------------------------- inlineformset_factory is poorly documented.
https://docs.djangoproject.com/en/dev/ref/forms/models/#django.forms.models.modelformset_factory lists modelform_factory and modelformset_factory, but not inlineformset_factory. We should probably add something in the line of: inlineformset_factory(parent_model, model, form=ModelForm, formfield_callback=None, formset=BaseInlineFormSet, fk_name=None, extra=3, can_delete=True, can_order=False, max_num=None, fields=None, exclude=None) Note that inlineformset_factory uses modelformset_factory() and marks can_delete=True, extra=3. In addition, it uses BaseInlineFormSet by default. If your model has more than one ForeignKey to the parent_model, you must specify a fk_name. -- Ticket URL: <https://code.djangoproject.com/ticket/19640> Django <https://code.djangoproject.com/> The Web framework for perfectionists with deadlines. -- You received this message because you are subscribed to the Google Groups "Django updates" group. To post to this group, send email to django-updates@googlegroups.com. To unsubscribe from this group, send email to django-updates+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.