Browse Source
fix: corrige bug na common tag format_user (#3702)
Co-authored-by: joao <joao@mezzoplanejamento.com.br>
pull/3723/head
joaohortsenado
9 months ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
3 additions and
0 deletions
-
sapl/base/templatetags/common_tags.py
|
|
@ -84,6 +84,9 @@ def desc_operation(value): |
|
|
|
|
|
|
|
@register.filter |
|
|
|
def format_user(user): |
|
|
|
if not user: |
|
|
|
return "" |
|
|
|
|
|
|
|
if user.first_name: |
|
|
|
return user.first_name + " " + user.last_name + " (" + user.username + ")" |
|
|
|
else: |
|
|
|