Opened 7 years ago

Closed 7 years ago

Last modified 19 months ago

#8498 closed (fixed)

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

Reported by: jezdez Owned by: jezdez
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 jezdez 7 years ago.
Small patch to add support for app_index_template

Download all attachments as: .zip

Change History (10)

Changed 7 years ago by jezdez

Small patch to add support for app_index_template

comment:1 Changed 7 years ago by jezdez

  • Has patch set
  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset

comment:2 Changed 7 years ago by jezdez

  • Owner changed from nobody to jezdez
  • Status changed from new to assigned

comment:3 Changed 7 years ago by brosner

  • Resolution set to fixed
  • Status changed from assigned to closed

(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 3 years ago by jacob

  • milestone 1.0 deleted

Milestone 1.0 deleted

comment:5 Changed 19 months ago by Tim Graham <timograham@…>

In ccf8f1e18f138dae369a2004c83db9704ad52d99:

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

comment:6 Changed 19 months ago by Tim Graham <timograham@…>

In 7de35a9ef372eb47442d5d1278cc15b6155e5054:

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

Thanks CollinAnderson for the report.

comment:7 Changed 19 months 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 19 months 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 19 months 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