From 4288dda098bf52f565d275dfa95cfe31fb0e9d89 Mon Sep 17 00:00:00 2001 From: "Starlone (Estagiario)" Date: Mon, 2 Aug 2010 21:18:48 +0000 Subject: [PATCH] Alterando list e list_link dos admin de casas e convenio --- sigi/apps/casas/admin.py | 2 +- sigi/apps/convenios/admin.py | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/sigi/apps/casas/admin.py b/sigi/apps/casas/admin.py index ae30552..d865ab4 100644 --- a/sigi/apps/casas/admin.py +++ b/sigi/apps/casas/admin.py @@ -28,7 +28,7 @@ class CasaLegislativaAdmin(admin.ModelAdmin): change_list_template = 'casas/change_list.html' actions = ['delete_selected','etiqueta','relatorio'] inlines = (TelefonesInline, ContatosInline, ConveniosInline) - list_display = ('nome', 'email', 'pagina_web', 'municipio') + list_display = ('nome','municipio','parlamentar','logradouro') list_display_links = ('nome',) list_filter = ('tipo', 'municipio') ordering = ('municipio__uf','nome') diff --git a/sigi/apps/convenios/admin.py b/sigi/apps/convenios/admin.py index 629da6c..91f8719 100644 --- a/sigi/apps/convenios/admin.py +++ b/sigi/apps/convenios/admin.py @@ -43,12 +43,13 @@ class ConvenioAdmin(admin.ModelAdmin): 'data_adesao','data_retorno_assinatura','data_termo_aceite', 'projeto', ) + list_display_links = ('num_convenio','casa_legislativa',) list_filter = ('projeto','casa_legislativa','conveniada', 'equipada') date_hierarchy = 'data_adesao' ordering = ('casa_legislativa__municipio__uf','-id',) raw_id_fields = ('casa_legislativa',) search_fields = ('id', 'casa_legislativa__nome', - 'num_processo_sf') + 'num_processo_sf','num_convenio') def changelist_view(self, request, extra_context=None): return super(ConvenioAdmin, self).changelist_view(