[Django] #37048: Backwards incompatible change to InclusionAdminNode

23 views
Skip to first unread message

Django

unread,
Apr 18, 2026, 8:40:24 AMApr 18
to django-...@googlegroups.com
#37048: Backwards incompatible change to InclusionAdminNode
----------------------------+-------------------------------------------
Reporter: Anže Pečar | Type: Bug
Status: new | Component: Template system
Version: dev | Severity: Normal
Keywords: | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
----------------------------+-------------------------------------------
#36728 introduced a backwards incompatible change to the
`InclusionAdminNode`: https://github.com/django/django/pull/20086/changes
#diff-f60f94cb07bce796697e9d0357602fd6675a9891eaa57b8bd4cb70ae4ee3dda4R14

Instantiating `InclusionAdminNode()` without the name argument causes a
crash. Example of usage from the django-unfold 3rd party library:
https://github.com/unfoldadmin/django-
unfold/blob/main/src/unfold/templatetags/unfold_list.py#L409-L414

From what I can tell the name argument is only used in the error message
so maybe we can make it optional?
--
Ticket URL: <https://code.djangoproject.com/ticket/37048>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

Django

unread,
Apr 18, 2026, 9:24:01 AMApr 18
to django-...@googlegroups.com
#37048: Backwards incompatible change to InclusionAdminNode
---------------------------------+--------------------------------------
Reporter: Anže Pečar | Owner: (none)
Type: Bug | Status: closed
Component: Template system | Version: dev
Severity: Normal | Resolution: wontfix
Keywords: | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
---------------------------------+--------------------------------------
Changes (by Jake Howard):

* resolution: => wontfix
* status: new => closed

Comment:

After some digging, `InclusionAdminNode` isn't a public API, so doesn't
have any compatibility guarantees. A similar backwards-incompatible change
was made to `parse_bits`. Neither are mentioned in the 6.1 release notes.

I spoke to Jacob at Djangocon Europe, and we agreed that since it's not
part of the public API, it's not something we should be fixing. The work-
around would be to change the arguments passed depending on the version,
which shouldn't be too much hassle.
--
Ticket URL: <https://code.djangoproject.com/ticket/37048#comment:1>

Django

unread,
Apr 18, 2026, 9:42:36 AMApr 18
to django-...@googlegroups.com
#37048: Backwards incompatible change to InclusionAdminNode
---------------------------------+--------------------------------------
Reporter: Anže Pečar | Owner: (none)
Type: Bug | Status: closed
Component: Template system | Version: dev
Severity: Normal | Resolution: wontfix
Keywords: | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
---------------------------------+--------------------------------------
Comment (by Anže Pečar):

Since `InclusionAdminNode` is used in the wild should we at last include a
note about the change in the changelog?
--
Ticket URL: <https://code.djangoproject.com/ticket/37048#comment:2>

Django

unread,
Apr 18, 2026, 5:20:27 PMApr 18
to django-...@googlegroups.com
#37048: Backwards incompatible change to InclusionAdminNode
---------------------------------+--------------------------------------
Reporter: Anže Pečar | Owner: (none)
Type: Bug | Status: closed
Component: Template system | Version: dev
Severity: Normal | Resolution: wontfix
Keywords: | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
---------------------------------+--------------------------------------
Comment (by Jacob Walls):

Sure, we can add it to the "Backwards incompatible changes in 6.1" section
in the release note. We usually add a disclaimer like "the undocumented
InclusionAdminNode ..."
--
Ticket URL: <https://code.djangoproject.com/ticket/37048#comment:3>

Django

unread,
Apr 19, 2026, 4:10:31 AMApr 19
to django-...@googlegroups.com
#37048: Backwards incompatible change to InclusionAdminNode
---------------------------------+--------------------------------------
Reporter: Anže Pečar | Owner: (none)
Type: Bug | Status: closed
Component: Template system | Version: dev
Severity: Normal | Resolution: wontfix
Keywords: | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
---------------------------------+--------------------------------------
Comment (by Anže Pečar):

Thank you Jacob, I've created a PR with the documentation changes:
https://github.com/django/django/pull/21135
--
Ticket URL: <https://code.djangoproject.com/ticket/37048#comment:4>

Django

unread,
Apr 19, 2026, 4:36:26 AMApr 19
to django-...@googlegroups.com
#37048: Backwards incompatible change to InclusionAdminNode
--------------------------------------+------------------------------------
Reporter: Anže Pečar | Owner: (none)
Type: Cleanup/optimization | Status: new
Component: Documentation | Version: dev
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
--------------------------------------+------------------------------------
Changes (by Jacob Walls):

* component: Template system => Documentation
* resolution: wontfix =>
* stage: Unreviewed => Accepted
* status: closed => new
* type: Bug => Cleanup/optimization

--
Ticket URL: <https://code.djangoproject.com/ticket/37048#comment:5>

Django

unread,
Apr 19, 2026, 4:36:34 AMApr 19
to django-...@googlegroups.com
#37048: Backwards incompatible change to InclusionAdminNode
-------------------------------------+-------------------------------------
Reporter: Anže Pečar | Owner: Anže
Type: | Pečar
Cleanup/optimization | Status: assigned
Component: Documentation | Version: dev
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Jacob Walls):

* owner: (none) => Anže Pečar
* status: new => assigned

--
Ticket URL: <https://code.djangoproject.com/ticket/37048#comment:6>

Django

unread,
Apr 19, 2026, 4:38:38 AMApr 19
to django-...@googlegroups.com
#37048: Backwards incompatible change to InclusionAdminNode
-------------------------------------+-------------------------------------
Reporter: Anže Pečar | Owner: Anže
Type: | Pečar
Cleanup/optimization | Status: assigned
Component: Documentation | Version: dev
Severity: Normal | Resolution:
Keywords: | Triage Stage: Ready for
| checkin
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Jacob Walls):

* stage: Accepted => Ready for checkin

--
Ticket URL: <https://code.djangoproject.com/ticket/37048#comment:7>

Django

unread,
Apr 19, 2026, 4:49:03 AMApr 19
to django-...@googlegroups.com
#37048: Backwards incompatible change to InclusionAdminNode
-------------------------------------+-------------------------------------
Reporter: Anže Pečar | Owner: Anže
Type: | Pečar
Cleanup/optimization | Status: closed
Component: Documentation | Version: dev
Severity: Normal | Resolution: fixed
Keywords: | Triage Stage: Ready for
| checkin
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by GitHub <noreply@…>):

* resolution: => fixed
* status: assigned => closed

Comment:

In [changeset:"250434861e327769a0447c473178f99482b9406c" 25043486]:
{{{#!CommitTicketReference repository=""
revision="250434861e327769a0447c473178f99482b9406c"
Fixed #37048, Refs #36728 -- Added release notes for changes to
InclusionAdminNode and parse_bits().
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/37048#comment:8>
Reply all
Reply to author
Forward
0 new messages