From 7909d4e557fc6748f015febc24c1780d509012be Mon Sep 17 00:00:00 2001 From: Felipe Vieira Date: Wed, 14 Dec 2011 19:46:32 +0000 Subject: [PATCH] corrigindo bug na busca do admin --- sigi/apps/servidores/admin.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sigi/apps/servidores/admin.py b/sigi/apps/servidores/admin.py index 1462b94..dd5e130 100644 --- a/sigi/apps/servidores/admin.py +++ b/sigi/apps/servidores/admin.py @@ -21,7 +21,7 @@ class FeriasAdmin(admin.ModelAdmin): list_display = ('servidor', 'inicio_ferias', 'fim_ferias') list_filter = ('inicio_ferias', 'fim_ferias') search_fields = ('obs', - 'servidor__nome_completo', 'servidor__email_pesoal', + 'servidor__nome_completo', 'servidor__email_pessoal', 'servidor__user__email', 'servidor__user__username') class LicencaAdmin(admin.ModelAdmin): @@ -29,7 +29,7 @@ class LicencaAdmin(admin.ModelAdmin): list_display = ('servidor', 'inicio_licenca', 'fim_licenca') list_filter = ('servidor', 'inicio_licenca', 'fim_licenca') search_fields = ('obs', - 'servidor__nome_completo', 'servidor__email_pesoal', + 'servidor__nome_completo', 'servidor__email_pessoal', 'servidor__user__email', 'servidor__user__username') class EnderecoInline(generic.GenericStackedInline):