Skip to content

Commit

Permalink
[1.2.X] Fixed #15292 -- Removed redundant code in admin list template…
Browse files Browse the repository at this point in the history
… 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
  • Loading branch information
freakboy3742 committed Feb 19, 2011
1 parent b9fc780 commit 19fa3bc
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions django/contrib/admin/templatetags/admin_list.py
Expand Up @@ -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:
Expand Down

0 comments on commit 19fa3bc

Please sign in to comment.