Code

Ticket #8107: boolean.diff

File boolean.diff, 567 bytes (added by bjornkri, 6 years ago)

Possible fix, based on malcolmt's suggestions

Line 
1Index: django/contrib/admin/options.py
2===================================================================
3--- django/contrib/admin/options.py     (revision 8227)
4+++ django/contrib/admin/options.py     (working copy)
5@@ -104,7 +104,7 @@
6         classes = []
7         if self.is_checkbox:
8             classes.append(u'vCheckboxLabel')
9-            contents = escape(self.field.label)
10+            contents = force_unicode(escape(self.field.label))
11         else:
12             contents = force_unicode(escape(self.field.label)) + u':'
13         if self.field.field.required: