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
| Attribute | Type | Description |
|---|---|---|
| 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
| Name | Type | Description |
|---|---|---|
| formset | Any | The formset instance associated with this inline fieldset. |
| *args | tuple | Variable length argument list passed to the parent constructor. |
| **kwargs | dict | Arbitrary 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
| Name | Type | Description |
|---|---|---|
| formset | [BaseInlineFormSet](../../../forms/models/baseinlineformset.md?sid=django_forms_models_baseinlineformset) | The formset instance containing the inline forms to be rendered within this fieldset |
| *args | any | Positional arguments passed to the parent Fieldset constructor |
| **kwargs | any | Keyword arguments passed to the parent Fieldset constructor |