From b734244c1225353492abf739cf14abe9525150d3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ses=C3=B3stris=20Vieira?= Date: Tue, 23 Apr 2013 09:32:53 -0300 Subject: [PATCH] =?UTF-8?q?Corre=C3=A7=C3=B5es=20em=20filtros=20na=20app?= =?UTF-8?q?=20de=20registro=20de=20parlamentares?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sigi/apps/mesas/admin.py | 2 +- sigi/apps/parlamentares/admin.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sigi/apps/mesas/admin.py b/sigi/apps/mesas/admin.py index 9980673..62eb551 100644 --- a/sigi/apps/mesas/admin.py +++ b/sigi/apps/mesas/admin.py @@ -17,7 +17,7 @@ class LegislaturaAdmin(admin.ModelAdmin): raw_id_fields = ('casa_legislativa',) list_display_links = ('numero',) list_filter = ('casa_legislativa', ) - search_fields = ('numero', 'casa_legislativa') + search_fields = ('casa_legislativa__nome', 'casa_legislativa__municipio__nome' ) inlines = (MandatoInline,) def uf(self, obj): diff --git a/sigi/apps/parlamentares/admin.py b/sigi/apps/parlamentares/admin.py index 087ce9a..24e2632 100644 --- a/sigi/apps/parlamentares/admin.py +++ b/sigi/apps/parlamentares/admin.py @@ -22,7 +22,7 @@ class ParlamentarAdmin(admin.ModelAdmin): inlines = (TelefonesInline, MandatosInline) list_display = ('nome_completo', 'nome_parlamentar', 'sexo') list_display_links = ('nome_completo', 'nome_parlamentar') - list_filter = ('nome_completo', 'sexo') + list_filter = ('nome_completo', 'nome_parlamentar') fieldsets = ( (None, { 'fields': ('nome_completo', 'nome_parlamentar', 'sexo'),