Re: [Django] #4848: Allow inline fields to be "mixed in" with the models' own fields

22 views
Skip to first unread message

Django

unread,
Feb 24, 2016, 11:30:34 AM2/24/16
to django-...@googlegroups.com
#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
-------------------------------------+-------------------------------------
Changes (by nutztherookie):

* 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.

Django

unread,
Apr 19, 2018, 3:31:51 AM4/19/18
to django-...@googlegroups.com
#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

unread,
Oct 30, 2018, 11:48:08 AM10/30/18
to django-...@googlegroups.com
#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
-------------------------------------+-------------------------------------
Changes (by Frank Sachsenheim):

* 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>

Django

unread,
Jul 12, 2019, 7:20:23 PM7/12/19
to django-...@googlegroups.com
#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
-------------------------------------+-------------------------------------
Changes (by Alex Scott):

* 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>

Django

unread,
Oct 5, 2019, 2:25:39 AM10/5/19
to django-...@googlegroups.com
#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 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>

Django

unread,
Mar 21, 2024, 6:05:10 PM3/21/24
to django-...@googlegroups.com
#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 frnhr):

There seems to be a working app for this: https://github.com/robertkovac
/django-fieldsets-with-inlines
I would love to see it built in.
--
Ticket URL: <https://code.djangoproject.com/ticket/4848#comment:17>

Django

unread,
May 23, 2025, 10:47:11 AMMay 23
to django-...@googlegroups.com
#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
-------------------------------------+-------------------------------------
Changes (by Éric):

* cc: Éric (added)

--
Ticket URL: <https://code.djangoproject.com/ticket/4848#comment:18>
Reply all
Reply to author
Forward
0 new messages