diff options
author | Filipp Lepalaan <filipp@mac.com> | 2015-10-08 10:49:14 +0300 |
---|---|---|
committer | Filipp Lepalaan <filipp@mac.com> | 2015-10-08 10:49:14 +0300 |
commit | 7a3a9f2d3d86d23669fad14cc93a365cc2136b4b (patch) | |
tree | c26d797fd35519335d245f702144d81f32d9619d /servo/templates/admin | |
parent | ba1315d8a611f1b891cfd6610fbd053077357cb7 (diff) | |
download | Servo-7a3a9f2d3d86d23669fad14cc93a365cc2136b4b.tar.gz Servo-7a3a9f2d3d86d23669fad14cc93a365cc2136b4b.tar.bz2 Servo-7a3a9f2d3d86d23669fad14cc93a365cc2136b4b.zip |
Don't allow deleting yourself
Diffstat (limited to 'servo/templates/admin')
-rw-r--r-- | servo/templates/admin/users/form.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/servo/templates/admin/users/form.html b/servo/templates/admin/users/form.html index 34764ab..e744eb8 100644 --- a/servo/templates/admin/users/form.html +++ b/servo/templates/admin/users/form.html @@ -58,7 +58,7 @@ </div> </div> <div class="form-actions"> - {% if user.pk %} + {% if user.pk and can_delete %} <a href="{% url 'admin-delete_user' user.pk %}" class="btn btn-danger" data-modal="#modal">{% trans "Delete" %}</a> {% else %} <a href="#" class="btn btn-danger disabled">{% trans "Delete" %}</a> |