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