From 7a3a9f2d3d86d23669fad14cc93a365cc2136b4b Mon Sep 17 00:00:00 2001 From: Filipp Lepalaan Date: Thu, 8 Oct 2015 10:49:14 +0300 Subject: Don't allow deleting yourself --- servo/templates/admin/users/form.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'servo/templates/admin') 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 @@
- {% if user.pk %} + {% if user.pk and can_delete %} {% trans "Delete" %} {% else %} {% trans "Delete" %} -- cgit v1.2.3