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 @register.filter
def format_user(user): def format_user(user):
if user.first_name: if user.first_name:
return user.username + " - " + user.first_name + " " + user.last_name return user.first_name + " " + user.last_name + " (" + user.username + ")"
else: else:
return user.username return user.username

4
sapl/templates/protocoloadm/comprovante.html

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

Loading…
Cancel
Save