From 724d9da732e0762a0e458e552b5acd7ed09043c8 Mon Sep 17 00:00:00 2001 From: Marcio Mazza Date: Wed, 14 Mar 2018 11:00:40 -0300 Subject: [PATCH] =?UTF-8?q?Revert=20"Formata=20mudan=C3=A7a=20de=20linha?= =?UTF-8?q?=20na=20exibi=C3=A7=C3=A3o=20de=20TextField=20(#1749)"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This reverts commit 74f91f0f77e12107f939d35f53ea6d923d113f19. --- sapl/crispy_layout_mixin.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/sapl/crispy_layout_mixin.py b/sapl/crispy_layout_mixin.py index 9b2f0867b..12a876b12 100644 --- a/sapl/crispy_layout_mixin.py +++ b/sapl/crispy_layout_mixin.py @@ -132,8 +132,6 @@ 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