From 660b9095577f53eab27bbfeec7c452bc0047a278 Mon Sep 17 00:00:00 2001 From: Malcolm Tredinnick Date: Fri, 8 Aug 2008 21:19:59 +0000 Subject: [PATCH] Fixed #8107 -- Fixed a missing forced_unicode() call in admin. Patch from bjronkri. git-svn-id: http://code.djangoproject.com/svn/django/trunk@8245 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- django/contrib/admin/options.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/django/contrib/admin/options.py b/django/contrib/admin/options.py index 6d7ef6f510..364a1b9852 100644 --- a/django/contrib/admin/options.py +++ b/django/contrib/admin/options.py @@ -104,7 +104,7 @@ class AdminField(object): classes = [] if self.is_checkbox: classes.append(u'vCheckboxLabel') - contents = escape(self.field.label) + contents = force_unicode(escape(self.field.label)) else: contents = force_unicode(escape(self.field.label)) + u':' if self.field.field.required: