From 174296720db49d153c787dc25bf4d217806ffafa Mon Sep 17 00:00:00 2001 From: Eduardo Calil Date: Mon, 24 Jul 2017 14:03:02 -0300 Subject: [PATCH] =?UTF-8?q?Solu=C3=A7=C3=A3o=20para=20a=20issue=20(#1298)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sapl/crispy_layout_mixin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sapl/crispy_layout_mixin.py b/sapl/crispy_layout_mixin.py index 29cd7849f..e0704d3f3 100644 --- a/sapl/crispy_layout_mixin.py +++ b/sapl/crispy_layout_mixin.py @@ -67,7 +67,7 @@ def get_field_display(obj, fieldname): ou mesmo uma método no model. """ value = getattr(obj, fieldname) - verbose_name = '' + verbose_name = value.model._meta.verbose_name else: verbose_name = str(field.verbose_name)\