user delete fix

This commit is contained in:
mridulnagpal 2016-12-04 12:57:20 +05:30 committed by James Valleroy
parent 0a3a68aee7
commit a2d4719685
No known key found for this signature in database
GPG Key ID: 77C0C75E7B650808

View File

@ -40,6 +40,7 @@
<div class="list-group"> <div class="list-group">
{% for user in object_list %} {% for user in object_list %}
<div class="list-group-item clearfix"> <div class="list-group-item clearfix">
{% if object_list|length != 1 %}
<a href="{% url 'users:delete' user.username %}" <a href="{% url 'users:delete' user.username %}"
class="btn btn-default btn-sm pull-right" class="btn btn-default btn-sm pull-right"
role="button" role="button"
@ -47,6 +48,7 @@
<span class="glyphicon glyphicon-trash" <span class="glyphicon glyphicon-trash"
aria-hidden="true"></span> aria-hidden="true"></span>
</a> </a>
{% endif %}
<a class='user-edit-label' <a class='user-edit-label'
href="{% url 'users:edit' user.username %}" href="{% url 'users:edit' user.username %}"