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 %}