From 92d54ae3b8cdac574cba237478b17f8d6fb39868 Mon Sep 17 00:00:00 2001 From: Sesostris Vieira Date: Tue, 30 Oct 2012 14:25:14 +0000 Subject: [PATCH] =?UTF-8?q?Corrige=20bug=20que=20ocorre=20na=20interface?= =?UTF-8?q?=20mobile=20de=20diagn=C3=B3sticos=20quando=20uma=20Casa=20tem?= =?UTF-8?q?=20mais=20que=20um=20funcion=C3=A1rio=20num=20mesmo=20setor.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sigi/apps/diagnosticos/views.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/sigi/apps/diagnosticos/views.py b/sigi/apps/diagnosticos/views.py index c24ce84..8b66963 100644 --- a/sigi/apps/diagnosticos/views.py +++ b/sigi/apps/diagnosticos/views.py @@ -160,7 +160,10 @@ def categoria_contatos(request, id_diagnostico): if casa_legislativa.funcionario_set.filter(setor=n).count() <= 1: funcionarios.append(casa_legislativa.funcionario_set.get_or_create(setor=n)) else: - funcionarios.append(casa_legislativa.funcionario_set.filter(setor=n)) + for f in casa_legislativa.funcionario_set.filter(setor=n): + funcionarios.append((f, False)) + + print funcionarios if request.method == "POST": forms = []