From 857927be690d0228576bcb02c1b967accb98340f Mon Sep 17 00:00:00 2001 From: AlGouvea Date: Thu, 19 Aug 2021 10:47:30 -0300 Subject: [PATCH] =?UTF-8?q?Adicionado=20a=20condicional=20para=20caso=20de?= =?UTF-8?q?=20mat=C3=A9ria=20nula?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sapl/audiencia/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sapl/audiencia/views.py b/sapl/audiencia/views.py index 637886e8c..a35add9c2 100755 --- a/sapl/audiencia/views.py +++ b/sapl/audiencia/views.py @@ -37,7 +37,7 @@ class AudienciaCrud(Crud): coluna_materia = row[2] # Se mudar a ordem de listagem, mudar aqui. if coluna_materia[0]: materia = audiencia_materia[audiencia_id][0] - if materia: + if materia is not None: url_materia = reverse('sapl.materia:materialegislativa_detail', kwargs={'pk': materia.id}) else: url_materia = None