﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
36334	Django admin {% block object-tools %} no longer displayed in 5.2	Caram		"Steps to reproduce:
- override block object-tools in an app specific template (see below)

Expected results:
- the buttons in the object tools block are displayed

Actual results:
- up to 5.2.a1: the buttons are displayed as expected
- 5.2.b1, 5.2.rc1, 5.2: the buttons are no longer displayed. Even though the template is evaluated, the buttons don't even appear in the page source code


{{{
@admin.register(Test)
class PremiumAdmin(admin.ModelAdmin):
    change_list_template = 'admin/my_app/change_list.html'

}}}


{{{
{% extends ""admin/change_list.html"" %}

{% block extrahead %}
{{ block.super }}
<link rel=""stylesheet"" href=""https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.min.css"">
{% endblock %}

{% block object-tools %}
<ul class=""object-tools"">
  <li>
    <a href=""/test/"" class=""viewlink""><i class=""far fa-calendar-alt""></i>&nbsp;&nbsp;Dates</a>
  </li>
{% endblock %}
}}}
"	Bug	closed	contrib.admin	5.2	Normal	duplicate	admin object tools	Caram	Unreviewed	0	0	0	0	0	0
