#4848: Allow inline fields to be "mixed in" with the models' own fields
-------------------------------------+-------------------------------------
Reporter: leifbyron | Owner: nobody
Type: New feature | Status: new
Component: contrib.admin | Version: newforms-
| admin
Severity: Normal | Resolution:
Keywords: nfa-someday | Triage Stage: Accepted
newforms-admin inline models |
fields |
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Comment (by Karolis Ryselis):
Is this still relevant? My vision on this is to promote inlines to
fieldsets. It could look like this in admin class:
{{{
fieldsets = (
("Normal fieldset", {"fields": ("main_model_field1",
"main_model_field2")}),
("Related inline fieldset", {"inline_class": RelatedModelInline})
)
}}}
We could keep the current {{{inlines}}} attribute for backwards
compatibility and add those inlines as last fieldsets to the form. Getting
inlines for form submission would require checking fieldsets instead of
inlines.
I could implement this feature.
--
Ticket URL: <https://code.djangoproject.com/ticket/4848#comment:13>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/067.63afb70722995bcc087d31b9c05bed35%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.