Ticket #4320: unicode-admin.diff

File unicode-admin.diff, 733 bytes (added by anonymous, 18 years ago)
  • contrib/admin/templatetags/admin_list.py

     
    181181                result_repr = dict(f.choices).get(field_val, EMPTY_CHANGELIST_VALUE)
    182182            else:
    183183                result_repr = escape(field_val)
    184         if result_repr == '':
     184        if smart_unicode(result_repr) == '':
    185185            result_repr = ' '
    186186        # If list_display_links not defined, add the link tag to the first field
    187187        if (first and not cl.lookup_opts.admin.list_display_links) or field_name in cl.lookup_opts.admin.list_display_links:
Back to Top