From 20efdc535032866173b55aff2bd5483158a70e7e Mon Sep 17 00:00:00 2001 From: Cuong Nguyen Date: Tue, 11 Oct 2022 15:20:59 +0700 Subject: [PATCH] update edit btn visibility --- admin_extended/templates/admin/change_form.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/admin_extended/templates/admin/change_form.html b/admin_extended/templates/admin/change_form.html index 847bf69..b3ca71e 100644 --- a/admin_extended/templates/admin/change_form.html +++ b/admin_extended/templates/admin/change_form.html @@ -18,7 +18,7 @@ {% block object-tools-items %} {{ block.super }} {% if request.page_type == 'view' %} - {% if request.page_type == 'view' %} + {% if has_change_permission or has_delete_permission %}
  • Edit
  • {% endif %} {% endif %}