Browse Source

fix: corrige bug na common tag format_user (#3702)

Co-authored-by: joao <joao@mezzoplanejamento.com.br>
pull/3723/head
joaohortsenado 6 months ago
committed by GitHub
parent
commit
5f342eec5b
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 3
      sapl/base/templatetags/common_tags.py

3
sapl/base/templatetags/common_tags.py

@ -84,6 +84,9 @@ def desc_operation(value):
@register.filter @register.filter
def format_user(user): def format_user(user):
if not user:
return ""
if user.first_name: if user.first_name:
return user.first_name + " " + user.last_name + " (" + user.username + ")" return user.first_name + " " + user.last_name + " (" + user.username + ")"
else: else:

Loading…
Cancel
Save