summaryrefslogtreecommitdiff
path: root/django
diff options
context:
space:
mode:
authorRussell Keith-Magee <russell@keith-magee.com>2011-02-19 08:14:28 +0000
committerRussell Keith-Magee <russell@keith-magee.com>2011-02-19 08:14:28 +0000
commit19fa3bcebc979f20ed00f1aa1d09ff2ebf7e0473 (patch)
tree30505f7c10066d89699f3e0d53f7c4af87afa41a /django
parentb9fc7809f5a2085ea1dc3c4096ed65ff340ef252 (diff)
downloaddjango-19fa3bcebc979f20ed00f1aa1d09ff2ebf7e0473.tar.gz
[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
Diffstat (limited to 'django')
-rw-r--r--django/contrib/admin/templatetags/admin_list.py2
1 files changed, 0 insertions, 2 deletions
diff --git a/django/contrib/admin/templatetags/admin_list.py b/django/contrib/admin/templatetags/admin_list.py
index 08a1f2edbf..78a76be77a 100644
--- a/django/contrib/admin/templatetags/admin_list.py
+++ b/django/contrib/admin/templatetags/admin_list.py
@@ -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: