Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed #2344 -- Filtered some object string representations through th…

…e escape

filter.


git-svn-id: http://code.djangoproject.com/svn/django/trunk@3339 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 2175c99825517a40c549f8a355659385dc955c45 1 parent 0a2e8da
@malcolmt malcolmt authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 django/contrib/admin/templates/admin/delete_confirmation.html
View
4 django/contrib/admin/templates/admin/delete_confirmation.html
@@ -11,14 +11,14 @@
{% endblock %}
{% block content %}
{% if perms_lacking %}
- <p>{% blocktrans %}Deleting the {{ object_name }} '{{ object }}' would result in deleting related objects, but your account doesn't have permission to delete the following types of objects:{% endblocktrans %}</p>
+ <p>{% blocktrans with object|escape as escaped_object %}Deleting the {{ object_name }} '{{ escaped_object }}' would result in deleting related objects, but your account doesn't have permission to delete the following types of objects:{% endblocktrans %}</p>
<ul>
{% for obj in perms_lacking %}
<li>{{ obj }}</li>
{% endfor %}
</ul>
{% else %}
- <p>{% blocktrans %}Are you sure you want to delete the {{ object_name }} "{{ object }}"? All of the following related items will be deleted:{% endblocktrans %}</p>
+ <p>{% blocktrans with object|escape as escaped_object %}Are you sure you want to delete the {{ object_name }} "{{ escaped_object }}"? All of the following related items will be deleted:{% endblocktrans %}</p>
<ul>{{ deleted_objects|unordered_list }}</ul>
<form action="" method="post">
<div>
Please sign in to comment.
Something went wrong with that request. Please try again.