Example🔗
Given the following model:
We can create the following ModelAdmin
We can add a custom form to it using the nested form to it using
NestedFormField
and DynamicArrayField
.
This will create the following form in the admin panel:
And the data will be saved in the following from:
The nested forms will validate each of the fields, and errors will be shown like this: