From 45d38d35d379d7c1ef9382f769e2a3adb9aec827 Mon Sep 17 00:00:00 2001 From: Edward Ribeiro Date: Mon, 14 Mar 2016 18:03:25 -0300 Subject: [PATCH] Make uf dictionary 'global' --- relatorios/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/relatorios/views.py b/relatorios/views.py index b11813364..d6ccf435c 100644 --- a/relatorios/views.py +++ b/relatorios/views.py @@ -24,6 +24,7 @@ from .templates import (pdf_capa_processo_gerar, pdf_ordem_dia_gerar, pdf_pauta_sessao_gerar, pdf_protocolo_gerar, pdf_sessao_plenaria_gerar) +uf_dic = dict(UF) def get_kwargs_params(request, fields): kwargs = {} @@ -42,7 +43,6 @@ def get_cabecalho(casa): cabecalho = {} cabecalho["nom_casa"] = casa.nome # FIXME i18n - uf_dic = dict(UF) cabecalho["nom_estado"] = "Estado de " + uf_dic[casa.uf.upper()] return cabecalho