Skip to content

Commit 147c35d

Browse files
committed
Fix EMPTY_CHANGELIST_VALUE usage on non existing list items
1 parent bae8690 commit 147c35d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

polymorphic_tree/templatetags/stylable_admin_list.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ def _get_non_field_repr(cl, result, field_name):
268268
result_repr = smart_text(value)
269269

270270
except (AttributeError, ObjectDoesNotExist):
271-
result_repr = EMPTY_CHANGELIST_VALUE
271+
result_repr = get_empty_value_display(cl)
272272
else:
273273
# Strip HTML tags in the resulting text, except if the
274274
# function has an "allow_tags" attribute set to True.

0 commit comments

Comments
 (0)