Commit 19fa3bce authored by Russell Keith-Magee's avatar Russell Keith-Magee
Browse files

[1.2.X] Fixed #15292 -- Removed redundant code in admin list template tag....

[1.2.X] Fixed #15292 -- Removed redundant code in admin list template tag. Thanks to Julien Phalip for the report.

Backport of r15570 from trunk.

git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@15574 bcc190cf-cafb-0310-a4f2-bffc1f526a37
parent b9fc7809
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -154,8 +154,6 @@ def items_for_result(cl, result, form):
                else:
                    result_repr = mark_safe(result_repr)
            else:
                if value is None:
                    result_repr = EMPTY_CHANGELIST_VALUE
                if isinstance(f.rel, models.ManyToOneRel):
                    field_val = getattr(result, f.name)
                    if field_val is None: