Ticket #8159: 8159-warning.diff

File 8159-warning.diff, 630 bytes (added by Graham King, 16 years ago)

Adds a warning when attempting to delete yourself. This patch is the warning only.

  • django/contrib/admin/templates/admin/auth/user/delete_confirmation.html

     
     1{% extends "admin/delete_confirmation.html" %}
     2{% load i18n %}
     3
     4{% block content %}
     5{% ifequal user object %}
     6<ul class="errorlist">
     7        <li>{% trans "You are attempting to delete yourself" %}</li>
     8</ul>
     9{% endifequal %}
     10{{block.super}}
     11{% endblock %}
     12 No newline at end of file
Back to Top