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 c61d63d commit 0ba701c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion admin_extended/templates/admin/change_form.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@
{% block object-tools-items %}
{{ block.super }}
{% if request.page_type == 'view' %}
<li><a href="?edit=1"><i class="fas fa-edit"></i> Edit</a></li>
{% if request.page_type == 'view' %}
<li><a href="?edit=1"><i class="fas fa-edit"></i> Edit</a></li>
{% endif %}
{% endif %}
{% endblock %}

Expand Down

0 comments on commit 0ba701c

Please sign in to comment.