Ticket #4447: admin-list-with-none.diff
File admin-list-with-none.diff, 782 bytes (added by , 17 years ago) |
---|
-
usr/lib/python2.4/site-packages/django/contrib/admin/templatetags/admin_list.py
182 182 elif f.choices: 183 183 result_repr = dict(f.choices).get(field_val, EMPTY_CHANGELIST_VALUE) 184 184 else: 185 result_repr = escape( field_val)185 result_repr = escape(unicode(field_val)) 186 186 if force_unicode(result_repr) == '': 187 187 result_repr = ' ' 188 188 # If list_display_links not defined, add the link tag to the first field