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(