From 371eb45fef24b334ebef372f82b86fed48341ad5 Mon Sep 17 00:00:00 2001 From: Felipe Vieira Date: Fri, 25 Nov 2011 21:11:33 +0000 Subject: [PATCH] arrumando bug do model proxy funcionario --- sigi/apps/casas/admin.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sigi/apps/casas/admin.py b/sigi/apps/casas/admin.py index 443d5d0..3b2d059 100644 --- a/sigi/apps/casas/admin.py +++ b/sigi/apps/casas/admin.py @@ -28,6 +28,8 @@ class FuncionariosInline(admin.StackedInline): model = Funcionario extra = 1 inlines = (TelefonesInline) + def queryset(self, request): + return self.model.objects.exclude(cargo="Presidente") class ConveniosInline(admin.TabularInline): model = Convenio