From d890129841236409f699a99a067f0b19ba91a8a9 Mon Sep 17 00:00:00 2001 From: Claudio Morale Date: Wed, 15 Aug 2012 15:57:25 +0000 Subject: [PATCH] =?UTF-8?q?Mudan=C3=A7a=20est=C3=A9tica=20no=20Inline=20de?= =?UTF-8?q?=20funcion=C3=A1rios=20que=20aparece=20no=20cadastro=20de=20Cas?= =?UTF-8?q?as=20Legislativas,=20para=20tornar=20o=20conjunto=20mais=20comp?= =?UTF-8?q?acto.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sigi/apps/casas/admin.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/sigi/apps/casas/admin.py b/sigi/apps/casas/admin.py index 83c4d09..65aa5fe 100644 --- a/sigi/apps/casas/admin.py +++ b/sigi/apps/casas/admin.py @@ -28,9 +28,12 @@ class PresidenteInline(admin.StackedInline): class FuncionariosInline(admin.StackedInline): model = Funcionario + fieldsets = ((None, { + 'fields': (('nome', 'sexo', 'nota', 'email'), ('cargo', 'funcao', 'setor', 'tempo_de_servico'), 'ult_alteracao') + }),) readonly_fields = ('ult_alteracao',) extra = 1 - inlines = (TelefonesInline) + inlines = (TelefonesInline,) def queryset(self, request): return self.model.objects.exclude(cargo="Presidente")