Skip to main content

InlineFieldset

This class manages the display and iteration of fields within an inline formset, extending the standard fieldset functionality. It specifically handles the exclusion of foreign key fields that link the inline to the parent model during iteration. This ensures that only relevant data fields are rendered as field lines within the administrative interface.

Attributes

AttributeTypeDescription
formset[BaseInlineFormSet](../../../forms/models/baseinlineformset.md?sid=django_forms_models_baseinlineformset)The formset instance associated with this fieldset, used to identify and filter foreign key fields during iteration.

Constructor

Signature

def InlineFieldset(
formset: Any,
*args: tuple,
**kwargs: dict
)

Parameters

NameTypeDescription
formsetAnyThe formset instance associated with this inline fieldset.
*argstupleVariable length argument list passed to the parent constructor.
**kwargsdictArbitrary keyword arguments passed to the parent constructor.

Signature

def InlineFieldset(
formset: [BaseInlineFormSet](../../../forms/models/baseinlineformset.md?sid=django_forms_models_baseinlineformset),
*args: any,
**kwargs: any
) - > null

Parameters

NameTypeDescription
formset[BaseInlineFormSet](../../../forms/models/baseinlineformset.md?sid=django_forms_models_baseinlineformset)The formset instance containing the inline forms to be rendered within this fieldset
*argsanyPositional arguments passed to the parent Fieldset constructor
**kwargsanyKeyword arguments passed to the parent Fieldset constructor