[Django] #34722: Let ListFilter be a MediaDefiningClass so that they can define custom CSS and JS

0 views
Skip to first unread message

Django

unread,
Jul 19, 2023, 3:55:57 AM7/19/23
to django-...@googlegroups.com
#34722: Let ListFilter be a MediaDefiningClass so that they can define custom CSS
and JS
--------------------------------------------+------------------------
Reporter: Christophe Henry | Owner: nobody
Type: New feature | Status: new
Component: contrib.admin | Version: 4.2
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 |
--------------------------------------------+------------------------
There currently no way to define custom CSS or JS in `ListFilter` unless
by overriding its template. I propose to make `MediaDefiningClass` the
metaclass for `ListFilter` to allow creation of much more complex
components.

--
Ticket URL: <https://code.djangoproject.com/ticket/34722>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

Django

unread,
Jul 19, 2023, 9:43:59 AM7/19/23
to django-...@googlegroups.com
#34722: Let ListFilter be a MediaDefiningClass so that they can define custom CSS
and JS
----------------------------------+--------------------------------------

Reporter: Christophe Henry | Owner: nobody
Type: New feature | Status: closed
Component: contrib.admin | Version: 4.2
Severity: Normal | Resolution: invalid

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 Natalia Bidart):

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


Comment:

Hi

This report appears to be about requesting a new feature for Django. For
cases like this, the recommended path forward is to first propose and
discuss the idea/request with the community and gain consensus. To do
that, please start a new conversation on the
[https://forum.djangoproject.com/c/internals/5 Django Forum], where you'll
reach a wider audience and likely get richer feedback.

I'll close the ticket for now, but once that there is a community
agreement for the feature request, you are welcome to come back to the
ticket and point to the forum topic, so we can then re-open it. For more
details, please see
[https://docs.djangoproject.com/en/stable/internals/contributing/bugs-and-
features/#requesting-features the documented guidelines for requesting
features].

Thanks!

--
Ticket URL: <https://code.djangoproject.com/ticket/34722#comment:1>

Django

unread,
Jul 19, 2023, 1:37:58 PM7/19/23
to django-...@googlegroups.com
#34722: Let ListFilter be a MediaDefiningClass so that they can define custom CSS
and JS
----------------------------------+--------------------------------------
Reporter: Christophe Henry | Owner: nobody
Type: New feature | Status: closed
Component: contrib.admin | Version: 4.2
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 Natalia Bidart):

* resolution: invalid => wontfix


Comment:

Changing resolution to be consistent with documentation at
https://docs.djangoproject.com/en/4.2/internals/contributing/triaging-
tickets/#closing-tickets

--
Ticket URL: <https://code.djangoproject.com/ticket/34722#comment:2>

Reply all
Reply to author
Forward
0 new messages