From dee5744d92daa0414d47bad3874548b24b2a39be Mon Sep 17 00:00:00 2001 From: Eduardo Calil Date: Mon, 9 Oct 2017 16:14:24 -0300 Subject: [PATCH] Bug fix --- sapl/sessao/views.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sapl/sessao/views.py b/sapl/sessao/views.py index 1d92772d4..5588bccfc 100644 --- a/sapl/sessao/views.py +++ b/sapl/sessao/views.py @@ -165,8 +165,7 @@ def customize_link_materia(context): numeracao = materia.numeracao_set.first() autoria = materia.autoria_set.filter( primeiro_autor=True).first() - if autoria: - autor = autoria.autor + autor = autoria.autor if autoria else None num_protocolo = materia.numero_protocolo title_materia = '''%s