From fb1415b9062d0e66ec7c87fbc37b2626762e8fd0 Mon Sep 17 00:00:00 2001 From: Guilherme Gondim Date: Tue, 25 Nov 2008 21:28:15 +0000 Subject: [PATCH] Adicionado raw_id_fields. --- sigi/apps/servicos/admin.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sigi/apps/servicos/admin.py b/sigi/apps/servicos/admin.py index 427099d..c9f25db 100644 --- a/sigi/apps/servicos/admin.py +++ b/sigi/apps/servicos/admin.py @@ -7,6 +7,7 @@ from sigi.apps.servicos.models import Servico class ContatosInline(generic.GenericTabularInline): model = Contato extra = 2 + raw_id_fields = ('municipio',) verbose_name = 'colaborador Interlegis' verbose_name_plural = 'colaboradores Interlegis' @@ -15,6 +16,7 @@ class ServicoAdmin(admin.ModelAdmin): inlines = (ContatosInline,) list_display = ('id', 'titulo', 'tipo', 'convenio', 'situacao') list_filter = ('tipo','situacao', 'avaliacao') + raw_id_fields = ('convenio',) search_fields = ('titulo', 'tipo', 'descricao') admin.site.register(Servico, ServicoAdmin)