* cc: andreas@… (added)
--
Ticket URL: <https://code.djangoproject.com/ticket/4848#comment:12>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
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>
* cc: Frank Sachsenheim (added)
Comment:
@Karolis, i think the proposal formulated by @jkocherhans is more flexible
as it allows multiple inlines mxied with fields within a fieldset.
--
Ticket URL: <https://code.djangoproject.com/ticket/4848#comment:14>
* cc: Alex Scott (added)
Comment:
Is anyone working on this?
One "solution" that I found:
https://github.com/dezede/dezede/commit/ed13ccaf34494e71fd913fd785c229052f6acdc8
Another:
https://linevi.ch/en/django-inline-in-fieldset.html
I've never contributed before but if some would weigh in on what they
think the cleanest solution would be, I could maybe attempt something.
--
Ticket URL: <https://code.djangoproject.com/ticket/4848#comment:15>
Comment (by frnhr):
A similar feature was asked for in #15859, closed as a duplicate of this
ticket.
--
Ticket URL: <https://code.djangoproject.com/ticket/4848#comment:16>