From bbeac60c80151a85d73e051290650982d549d890 Mon Sep 17 00:00:00 2001 From: Edward Ribeiro Date: Thu, 27 Jul 2017 17:13:14 -0300 Subject: [PATCH] =?UTF-8?q?Revert=20"Solu=C3=A7=C3=A3o=20para=20a=20issue?= =?UTF-8?q?=20(#1298)"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Este commit do PR 1298 introduziu um erro na listagem de parlamentares. Revertando até termos uma solução sem efeitos adversos. This reverts commit 174296720db49d153c787dc25bf4d217806ffafa. --- 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 e0704d3f3..29cd7849f 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 = value.model._meta.verbose_name + verbose_name = '' else: verbose_name = str(field.verbose_name)\