diff options
| author | Malcolm Tredinnick <malcolm.tredinnick@gmail.com> | 2007-11-20 01:37:34 +0000 |
|---|---|---|
| committer | Malcolm Tredinnick <malcolm.tredinnick@gmail.com> | 2007-11-20 01:37:34 +0000 |
| commit | ab69710de4abde6bbfa382cdb7ab27e5082b6a5d (patch) | |
| tree | 01fbe96d0f3760321baa1f18aff4a135821c8267 | |
| parent | 116b9d06cc492f1dcc78fce4926799a771555cfd (diff) | |
Fixed #5976 -- Handle auto-escaping correctly for empty columns in admin change
view.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6705 bcc190cf-cafb-0310-a4f2-bffc1f526a37
| -rw-r--r-- | django/contrib/admin/templatetags/admin_list.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/django/contrib/admin/templatetags/admin_list.py b/django/contrib/admin/templatetags/admin_list.py index e49848f46f..a4e6269b6f 100644 --- a/django/contrib/admin/templatetags/admin_list.py +++ b/django/contrib/admin/templatetags/admin_list.py @@ -187,7 +187,7 @@ def items_for_result(cl, result): else: result_repr = escape(field_val) if force_unicode(result_repr) == '': - result_repr = ' ' + result_repr = mark_safe(' ') # If list_display_links not defined, add the link tag to the first field if (first and not cl.lookup_opts.admin.list_display_links) or field_name in cl.lookup_opts.admin.list_display_links: table_tag = {True:'th', False:'td'}[first] |
