Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fixed #15292 -- Removed redundant code in admin list template tag. Th…

…anks to Julien Phalip for the report.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@15570 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit c63bc87a9872ed8379426c2cb4d44c78e9eed632 1 parent 127725c
Russell Keith-Magee authored February 19, 2011
2  django/contrib/admin/templatetags/admin_list.py
@@ -153,8 +153,6 @@ def items_for_result(cl, result, form):
153 153
                 else:
154 154
                     result_repr = mark_safe(result_repr)
155 155
             else:
156  
-                if value is None:
157  
-                    result_repr = EMPTY_CHANGELIST_VALUE
158 156
                 if isinstance(f.rel, models.ManyToOneRel):
159 157
                     field_val = getattr(result, f.name)
160 158
                     if field_val is None:

0 notes on commit c63bc87

Please sign in to comment.
Something went wrong with that request. Please try again.