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")