Fixed #15292 -- Removed redundant code in admin list template tag. Thanks to Julien Phalip for the report.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@15570 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
127725c560
commit
c63bc87a98
|
@ -153,8 +153,6 @@ def items_for_result(cl, result, form):
|
||||||
else:
|
else:
|
||||||
result_repr = mark_safe(result_repr)
|
result_repr = mark_safe(result_repr)
|
||||||
else:
|
else:
|
||||||
if value is None:
|
|
||||||
result_repr = EMPTY_CHANGELIST_VALUE
|
|
||||||
if isinstance(f.rel, models.ManyToOneRel):
|
if isinstance(f.rel, models.ManyToOneRel):
|
||||||
field_val = getattr(result, f.name)
|
field_val = getattr(result, f.name)
|
||||||
if field_val is None:
|
if field_val is None:
|
||||||
|
|
Loading…
Reference in New Issue