Opened 8 years ago

Closed 8 years ago

Last modified 3 years ago

#8498 closed (fixed)

Make template for new django.contrib.admin.sites.AdminSite.app_index() configurable

Reported by: Jannis Leidel Owned by: Jannis Leidel
Component: contrib.admin Version: master
Severity: Keywords:
Cc: Triage Stage: Unreviewed
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:

Description

I very much welcome r8474 but think the template used in the new app_index method needs to be configurable, just like the display_login_form() and index() method.

Currently only 'admin/app_index.html' is allowed and limits the usefulness of inheriting of the AdminSite class. I stumbled over this while working on the new nfa-aware mobileadmin.

I suggest adding a class attribute (e.g.: app_index_template = None).

Attachments (1)

ticket8498-r8486.1.diff (988 bytes) - added by Jannis Leidel 8 years ago.
Small patch to add support for app_index_template

Download all attachments as: .zip

Change History (10)

Changed 8 years ago by Jannis Leidel

Attachment: ticket8498-r8486.1.diff added

Small patch to add support for app_index_template

comment:1 Changed 8 years ago by Jannis Leidel

Has patch: set

comment:2 Changed 8 years ago by Jannis Leidel

Owner: changed from nobody to Jannis Leidel
Status: newassigned

comment:3 Changed 8 years ago by Brian Rosner

Resolution: fixed
Status: assignedclosed

(In [8487]) Fixed #8498 -- Add the ability to customize the template for app_index similar to the other views on the AdminSite class. Thanks Jannis Leidel for the patch.

comment:4 Changed 5 years ago by Jacob

milestone: 1.0

Milestone 1.0 deleted

comment:5 Changed 3 years ago by Tim Graham <timograham@…>

In ccf8f1e18f138dae369a2004c83db9704ad52d99:

Added a test for AdminSite.app_index_template; refs #8498.

comment:6 Changed 3 years ago by Tim Graham <timograham@…>

In 7de35a9ef372eb47442d5d1278cc15b6155e5054:

Fixed #20779 -- Documented AdminSite.app_index_template; refs #8498.

Thanks CollinAnderson for the report.

comment:7 Changed 3 years ago by Tim Graham <timograham@…>

In bc617fd42c660c87f5fb6ba43c7b78449c4997d7:

[1.6.x] Fixed #20779 -- Documented AdminSite.app_index_template; refs #8498.

Thanks CollinAnderson for the report.

Backport of 7de35a9ef3 from master

comment:8 Changed 3 years ago by Tim Graham <timograham@…>

In ed6ec47ff72f5597d53f8c3e3ccd9ba13c360d4e:

[1.4.x] Fixed #20779 -- Documented AdminSite.app_index_template; refs #8498.

Thanks CollinAnderson for the report.

Backport of 7de35a9ef3 from master

comment:9 Changed 3 years ago by Tim Graham <timograham@…>

In 72fb37f9fdf0397e7e67856b28fc5f1f4546b57b:

[1.5.x] Fixed #20779 -- Documented AdminSite.app_index_template; refs #8498.

Thanks CollinAnderson for the report.

Backport of 7de35a9ef3 from master

Note: See TracTickets for help on using tickets.
Back to Top