Commit 02dace66 authored by Flavio Amieiro's avatar Flavio Amieiro

Retorna objeto unicode na property do admin de Projeto

Essa property quebrava com apelidos ou nomes que incluem caracteres não
parent a24731f6
Pipeline #35639725 passed with stage
in 1 minute and 54 seconds
......@@ -89,7 +89,7 @@ class ProjetoAdmin(admin.ModelAdmin):
if not obj.apelido:
return obj.nome
return '{} ({})'.format(obj.apelido, obj.nome)
return u'{} ({})'.format(obj.apelido, obj.nome)
nome_com_apelido.short_description = 'Projeto'
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment