From 4b94eb80f410cd9992e14e946dfb5534808c792c Mon Sep 17 00:00:00 2001 From: Eduardo Calil Date: Tue, 23 May 2017 19:14:22 -0300 Subject: [PATCH] Fix #1118 --- sapl/templates/materia/materialegislativa_filter.html | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/sapl/templates/materia/materialegislativa_filter.html b/sapl/templates/materia/materialegislativa_filter.html index a36f6cceb..ec65ebd19 100644 --- a/sapl/templates/materia/materialegislativa_filter.html +++ b/sapl/templates/materia/materialegislativa_filter.html @@ -58,10 +58,11 @@ {% if m.autoria_set.all %} Autores: {% for a in m.autoria_set.all %} - {% if not forloop.first %} - ,    {{a.autor}} - {% else %} -  {{a.autor}} + {% if a.primeiro_autor %} + {% if not forloop.first %} + ,    + {% endif %} +  {{a.autor.nome}} {% endif %} {% endfor %}