Ticket #4320: unicode-admin.diff
File unicode-admin.diff, 733 bytes (added by , 17 years ago) |
---|
-
contrib/admin/templatetags/admin_list.py
181 181 result_repr = dict(f.choices).get(field_val, EMPTY_CHANGELIST_VALUE) 182 182 else: 183 183 result_repr = escape(field_val) 184 if result_repr== '':184 if smart_unicode(result_repr) == '': 185 185 result_repr = ' ' 186 186 # If list_display_links not defined, add the link tag to the first field 187 187 if (first and not cl.lookup_opts.admin.list_display_links) or field_name in cl.lookup_opts.admin.list_display_links: