Skip to content

Commit

Permalink
update edit btn visibility
Browse files Browse the repository at this point in the history
  • Loading branch information
cuongnb14 authored Oct 11, 2022
1 parent 0ba701c commit 20efdc5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion admin_extended/templates/admin/change_form.html
Original file line number Diff line number Diff line change
Expand Up @@ -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 %}
<li><a href="?edit=1"><i class="fas fa-edit"></i> Edit</a></li>
{% endif %}
{% endif %}
Expand Down

0 comments on commit 20efdc5

Please sign in to comment.