Ticket #15292: 15292_useless_code_in_admin_list_py.diff
File 15292_useless_code_in_admin_list_py.diff, 662 bytes (added by , 14 years ago) |
---|
-
django/contrib/admin/templatetags/admin_list.py
diff --git a/django/contrib/admin/templatetags/admin_list.py b/django/contrib/admin/templatetags/admin_list.py index 806be24..813c38a 100644
a b 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_VALUE158 156 if isinstance(f.rel, models.ManyToOneRel): 159 157 field_val = getattr(result, f.name) 160 158 if field_val is None: