mirror of
https://github.com/django/django.git
synced 2025-10-26 23:26:08 +00:00
Fixed #25465 -- Restored line breaks conversion in admin readonly fields.
This commit is contained in:
committed by
Tim Graham
parent
dbb0df2a0e
commit
69208a5a1c
@@ -216,6 +216,7 @@ class AdminReadonlyField(object):
|
||||
result_repr = ", ".join(map(six.text_type, value.all()))
|
||||
else:
|
||||
result_repr = display_for_field(value, f, self.empty_value_display)
|
||||
result_repr = linebreaksbr(result_repr)
|
||||
return conditional_escape(result_repr)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user