From b58c55fc8063f31ca1eb141dd4b3b19f4be1dcb9 Mon Sep 17 00:00:00 2001 From: Malcolm Tredinnick Date: Wed, 14 Nov 2007 22:58:24 +0000 Subject: [PATCH] Fixed #5944 -- Added safe string markings to admin error messages in one place that was missed. git-svn-id: http://code.djangoproject.com/svn/django/trunk@6675 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- django/contrib/admin/views/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/django/contrib/admin/views/main.py b/django/contrib/admin/views/main.py index fa314803a3..947d09b852 100644 --- a/django/contrib/admin/views/main.py +++ b/django/contrib/admin/views/main.py @@ -159,7 +159,7 @@ class AdminBoundField(object): return repr(self.__dict__) def html_error_list(self): - return " ".join([form_field.html_error_list() for form_field in self.form_fields if form_field.errors]) + return mark_safe(" ".join([form_field.html_error_list() for form_field in self.form_fields if form_field.errors])) def original_url(self): if self.is_file_field and self.original and self.field.attname: