From 8cbc17c91397e0eb9ed4a668e1aa410f3abb3c7d Mon Sep 17 00:00:00 2001 From: Sesostris Vieira Date: Fri, 7 Apr 2017 12:15:22 -0300 Subject: [PATCH] Correct ContatoInline contact list to display in CasaAtendidaAdmin --- sigi/apps/servicos/admin.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sigi/apps/servicos/admin.py b/sigi/apps/servicos/admin.py index cecc0a8..74f5765 100644 --- a/sigi/apps/servicos/admin.py +++ b/sigi/apps/servicos/admin.py @@ -170,7 +170,9 @@ class ServicoAdmin(BaseModelAdmin): class ContatosInline(FuncionariosInline): can_delete = False # Equipe do SEIT não pode excluir pessoas de contato - + # SEIT see all contacts, including President + def get_queryset(self, request): + return self.model.objects.all() class CasaAtendidaAdmin(BaseModelAdmin): actions = None