Opened 16 years ago

Closed 16 years ago

Last modified 11 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: dev
Severity: Keywords:
Cc: Triage Stage: Unreviewed
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

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 16 years ago.
Small patch to add support for app_index_template

Download all attachments as: .zip

Change History (10)

by Jannis Leidel, 16 years ago

Attachment: ticket8498-r8486.1.diff added

Small patch to add support for app_index_template

comment:1 by Jannis Leidel, 16 years ago

Has patch: set

comment:2 by Jannis Leidel, 16 years ago

Owner: changed from nobody to Jannis Leidel
Status: newassigned

comment:3 by Brian Rosner, 16 years ago

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 by Jacob, 13 years ago

milestone: 1.0

Milestone 1.0 deleted

comment:5 by Tim Graham <timograham@…>, 11 years ago

In ccf8f1e18f138dae369a2004c83db9704ad52d99:

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

comment:6 by Tim Graham <timograham@…>, 11 years ago

In 7de35a9ef372eb47442d5d1278cc15b6155e5054:

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

Thanks CollinAnderson for the report.

comment:7 by Tim Graham <timograham@…>, 11 years ago

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 by Tim Graham <timograham@…>, 11 years ago

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 by Tim Graham <timograham@…>, 11 years ago

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