From fe3ad350252bf22d37bde0b680f780eef9c9832f Mon Sep 17 00:00:00 2001 From: VictorFabreF Date: Fri, 16 Mar 2018 12:08:36 -0300 Subject: [PATCH] =?UTF-8?q?Formata=20mudan=C3=A7a=20de=20linha=20na=20exib?= =?UTF-8?q?i=C3=A7=C3=A3o=20de=20TextField=20(#1765)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sapl/crispy_layout_mixin.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sapl/crispy_layout_mixin.py b/sapl/crispy_layout_mixin.py index 12a876b12..9b2f0867b 100644 --- a/sapl/crispy_layout_mixin.py +++ b/sapl/crispy_layout_mixin.py @@ -132,6 +132,8 @@ def get_field_display(obj, fieldname): value._meta.app_config.name, obj.content_type.model), args=(value.id,)), value) + elif 'TextField' in str_type_from_field: + display = value.replace('\n', '
') else: display = str(value) return verbose_name, display