From 8818ed3783222d2ce3577cc4b42e718af39e72ab Mon Sep 17 00:00:00 2001 From: Gustavo Santos Date: Tue, 9 Nov 2021 10:54:17 -0300 Subject: [PATCH] HOT-FIX: corrige bug em comprovante de protocolo --- sapl/base/templatetags/common_tags.py | 2 +- sapl/templates/protocoloadm/comprovante.html | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/sapl/base/templatetags/common_tags.py b/sapl/base/templatetags/common_tags.py index 13beb2924..c54c57e0e 100644 --- a/sapl/base/templatetags/common_tags.py +++ b/sapl/base/templatetags/common_tags.py @@ -54,7 +54,7 @@ def model_verbose_name_plural(class_name): @register.filter def format_user(user): if user.first_name: - return user.username + " - " + user.first_name + " " + user.last_name + return user.first_name + " " + user.last_name + " (" + user.username + ")" else: return user.username diff --git a/sapl/templates/protocoloadm/comprovante.html b/sapl/templates/protocoloadm/comprovante.html index 03cb3e878..0932e323c 100644 --- a/sapl/templates/protocoloadm/comprovante.html +++ b/sapl/templates/protocoloadm/comprovante.html @@ -113,8 +113,8 @@ {% endif %} {% if protocolo.de_proposicao %} - Proposição enviada por: - {{ proposicao.user|format_user }} + Proposição enviada por + {{ protocolo.user|format_user }} {% endif %}