Browse Source

HOT-FIX: corrige bug em comprovante de protocolo

pull/3486/head
Gustavo Santos 3 years ago
committed by Edward Oliveira
parent
commit
8818ed3783
  1. 2
      sapl/base/templatetags/common_tags.py
  2. 4
      sapl/templates/protocoloadm/comprovante.html

2
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

4
sapl/templates/protocoloadm/comprovante.html

@ -113,8 +113,8 @@
{% endif %}
{% if protocolo.de_proposicao %}
<tr>
<th>Proposição enviada por:</th>
<td>{{ proposicao.user|format_user }}</td>
<th>Proposição enviada por</th>
<td>{{ protocolo.user|format_user }}</td>
</tr>
{% endif %}
<tr>

Loading…
Cancel
Save