Opened 10 years ago
Last modified 10 years ago
#25130 closed New feature
Add the ability to specify custom inlinemodeladmin form — at Initial Version
| Reported by: | Burhan Khalid | Owned by: | nobody |
|---|---|---|---|
| Component: | contrib.admin | Version: | 1.8 |
| Severity: | Normal | Keywords: | |
| Cc: | Triage Stage: | Unreviewed | |
| Has patch: | no | Needs documentation: | no |
| Needs tests: | no | Patch needs improvement: | no |
| Easy pickings: | no | UI/UX: | no |
Description
Similar to how get_form allows customization of the admin form, there should be a way to customize the inline admin forms.
For example, if there is custom validation that needs to be done on the individual inline forms (for example, to raise a ValidationError) this cannot be done easily currently.
I am right now experimenting with get_formsets_with_inlines to modify the individual formsets' forms, but this feels very hackish and I'm not sure what other side-effects this will have.