Ticket #4447: admin-list-with-none.diff

File admin-list-with-none.diff, 782 bytes (added by hidded <me@…>, 17 years ago)
  • usr/lib/python2.4/site-packages/django/contrib/admin/templatetags/admin_list.py

     
    182182            elif f.choices:
    183183                result_repr = dict(f.choices).get(field_val, EMPTY_CHANGELIST_VALUE)
    184184            else:
    185                 result_repr = escape(field_val)
     185                result_repr = escape(unicode(field_val))
    186186        if force_unicode(result_repr) == '':
    187187            result_repr = '&nbsp;'
    188188        # If list_display_links not defined, add the link tag to the first field
Back to Top