From c31b252ef1c94afa61033d2dd57ad4ca6819aed2 Mon Sep 17 00:00:00 2001 From: "Camilo Carlos (Estagiario)" Date: Fri, 1 Oct 2010 18:25:30 +0000 Subject: [PATCH] =?UTF-8?q?Alterando=20op=C3=A7=C3=A3o=20para=20exportar?= =?UTF-8?q?=20todas=20as=20casas?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sigi/apps/casas/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sigi/apps/casas/views.py b/sigi/apps/casas/views.py index 7573fd9..0c3e398 100644 --- a/sigi/apps/casas/views.py +++ b/sigi/apps/casas/views.py @@ -219,7 +219,7 @@ def export_csv(request): response['Content-Disposition'] = 'attachment; filename=casas.csv' csv_writer = csv.writer(response) - casas = CasaLegislativa.objects.filter(municipio__uf__sigla=u'MG') + casas = CasaLegislativa.objects.all() for casa in casas: csv_writer.writerow([casa.nome.encode("utf-8"), casa.municipio.uf.sigla.encode("utf-8")])