InlineModelAdmin.form
The value for form
defaults to ModelForm
. This is what is passed through to inlineformset_factory()
when creating the formset for this inline.
Warning
When writing custom validation for InlineModelAdmin
forms, be cautious of writing validation that relies on features of the parent model. If the parent model fails to validate, it may be left in an inconsistent state as described in the warning in Validation on a ModelForm.
Please login to continue.