1
0
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:
Alexander Gaevsky
2015-12-24 23:32:53 +02:00
committed by Tim Graham
parent dbb0df2a0e
commit 69208a5a1c
6 changed files with 28 additions and 3 deletions

View File

@@ -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)