Browse Source

Merge pull request #131 from interlegis/new_sigi

Adicionando encode nas strings
pull/138/head
Lude Ribeiro 3 years ago
committed by GitHub
parent
commit
6e8e55b8f3
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 8
      sigi/apps/servicos/views.py

8
sigi/apps/servicos/views.py

@ -309,12 +309,12 @@ def export_csv(request):
if _(u"Casa Legislativa") == atributo: if _(u"Casa Legislativa") == atributo:
lista.append(servico.casa_legislativa.nome.encode("utf-8")) lista.append(servico.casa_legislativa.nome.encode("utf-8"))
lista.append(servico.casa_legislativa.municipio.uf.sigla.encode("utf-8")) lista.append(servico.casa_legislativa.municipio.uf.sigla.encode("utf-8"))
lista.append(servico.casa_legislativa.email) lista.append(servico.casa_legislativa.email.encode("utf-8"))
lista.append(servico.casa_legislativa.telefone) lista.append(servico.casa_legislativa.telefone.encode("utf-8"))
elif _(u"Contato Interlegis") == atributo: elif _(u"Contato Interlegis") == atributo:
lista.append(servico.casa_legislativa.contato_interlegis) lista.append(servico.casa_legislativa.contato_interlegis.encode("utf-8"))
if servico.casa_legislativa.contato_interlegis is not None: if servico.casa_legislativa.contato_interlegis is not None:
lista.append(servico.casa_legislativa.contato_interlegis.email) lista.append(servico.casa_legislativa.contato_interlegis.email.encode("utf-8"))
else: else:
lista.append("") lista.append("")
elif _(u"Produto") == atributo: elif _(u"Produto") == atributo:

Loading…
Cancel
Save