Opened 10 months ago

Last modified 10 months ago

#27728 assigned New feature

Allowed overriding admin templatetag's templates.

Reported by: Raffaele Salmaso Owned by: Raffaele Salmaso
Component: contrib.admin Version: master
Severity: Normal Keywords:
Cc: raffaele.salmaso+djangoproject@… Triage Stage: Accepted
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description (last modified by Tim Graham)

Refs #11974, #12566, #18957, #19235, #26763

It would be really nice that could be possible to override some templatetag's templates using the "standard" admin patter of admin/app_label/model/template.html.

actions.html
change_list_results.html
date_hierarchy.html
pagination.html
search_form.html
submit_line.html

and the object_tools blocks which now are hardcoded in change_form.html and change_list.html

Change History (2)

comment:1 Changed 10 months ago by Tim Graham

Description: modified (diff)
Has patch: unset
Triage Stage: UnreviewedAccepted
Type: UncategorizedNew feature

It's probably okay. I would start small rather than updating all the tags at once.

comment:2 Changed 10 months ago by Raffaele Salmaso

Has patch: set
Owner: changed from nobody to Raffaele Salmaso
Status: newassigned
Summary: Allow overriding admin templatetag's templates.Allowed overriding admin templatetag's templates.
Version: 1.10master

Cleaned up PR => https://github.com/django/django/pull/7840

I made one commit for base templatetag and one commit for each converted templatetag.

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