summaryrefslogtreecommitdiff
path: root/django/contrib/admin/templates/widget/one_to_one.html
diff options
context:
space:
mode:
Diffstat (limited to 'django/contrib/admin/templates/widget/one_to_one.html')
-rw-r--r--django/contrib/admin/templates/widget/one_to_one.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/django/contrib/admin/templates/widget/one_to_one.html b/django/contrib/admin/templates/widget/one_to_one.html
index a79a12314f..efd0117bf2 100644
--- a/django/contrib/admin/templates/widget/one_to_one.html
+++ b/django/contrib/admin/templates/widget/one_to_one.html
@@ -1,2 +1,2 @@
{% if add %}{% include "widget/foreign.html" %}{% endif %}
-{% if change %}{% if bound_field.existing_display %}&nbsp;<strong>{{ bound_field.existing_display|truncatewords:"14" }}</strong>{% endif %}{% endif %}
+{% if change %}{% if bound_field.existing_display %}&nbsp;<strong>{{ bound_field.existing_display|truncatewords:"14"|escape }}</strong>{% endif %}{% endif %}