[Django] #35178: Override FORM_RENDERER for admin site

3 views
Skip to first unread message

Django

unread,
Feb 9, 2024, 7:11:44 AMFeb 9
to django-...@googlegroups.com
#35178: Override FORM_RENDERER for admin site
-------------------------------------+-------------------------------------
Reporter: Nikolay | Owner: nobody
Fedorov |
Type: New | Status: new
feature |
Component: | Version: 5.0
contrib.admin | Keywords: forms, render,
Severity: Normal | template, admin, render template,
Triage Stage: | custom template
Unreviewed | Has patch: 0
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
-------------------------------------+-------------------------------------
If I use custom FORM_RENDERER in settings, admin site doesn't work
properly. As an example, "Select all" doesn't work becuse I use custom
template for select widget.
I want to use Django's default FORM_RENDERER for admin section.
--
Ticket URL: <https://code.djangoproject.com/ticket/35178>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

Django

unread,
Feb 9, 2024, 7:12:27 AMFeb 9
to django-...@googlegroups.com
#35178: Override FORM_RENDERER for admin site
-------------------------------------+-------------------------------------
Reporter: Nikolay Fedorov | Owner: nobody
Type: New feature | Status: new
Component: contrib.admin | Version: 5.0
Severity: Normal | Resolution:
Keywords: forms, render, | Triage Stage:
template, admin, render template, | Unreviewed
custom template |

Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Nikolay Fedorov):

* Attachment "Снимок экрана 2024-02-09 в 14.28.59.png" added.

select all doesn't work

Django

unread,
Feb 9, 2024, 3:22:01 PMFeb 9
to django-...@googlegroups.com
#35178: Override FORM_RENDERER for admin site
-------------------------------------+-------------------------------------
Reporter: Nikolay Fedorov | Owner: nobody
Type: New feature | Status: closed
Component: Forms | Version: 5.0
Severity: Normal | Resolution: invalid

Keywords: forms, render, | Triage Stage:
template, admin, render template, | Unreviewed
custom template |
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
* component: contrib.admin => Forms

Comment:

Hello Nikolay!

As documented, the [https://docs.djangoproject.com/en/5.0/ref/settings
/#form-renderer FORM_RENDERER] setting affects the way that forms and form
widgets are rendered. If you wish to have only a subset of forms rendered
with your custom renderer, you can follow
[https://docs.djangoproject.com/en/5.0/topics/forms/#reusable-form-
templates these docs].

Given the lack of details for this ticket, it seems better suited to be a
support request or a new feature request. The best place to get answers to
your issue is using any of the user support channels from
[https://docs.djangoproject.com/en/dev/faq/help/#how-do-i-do-x-why-
doesn-t-y-work-where-can-i-go-to-get-help this link].

Since the goal of this issue tracker is to track issues about Django
itself, or new features already discussed and agreed in the forum, I'll be
closing this ticket as invalid following the
[https://docs.djangoproject.com/en/dev/internals/contributing/triaging-
tickets/#closing-tickets ticket triaging process]. If, after debugging,
you find out that this is indeed a bug in Django, please re-open with
more/specific details and please be sure to include a small Django project
to reproduce or a failing test case.

Thank you!
--
Ticket URL: <https://code.djangoproject.com/ticket/35178#comment:1>

Reply all
Reply to author
Forward
0 new messages