From 0d4b1cd748550f21e892e653a7b392c60cfcc6e6 Mon Sep 17 00:00:00 2001 From: ulyssesBML Date: Tue, 12 Mar 2019 15:21:22 -0300 Subject: [PATCH] =?UTF-8?q?HOT-FIX:=20Corrigir=20choices=20de=20destino=20?= =?UTF-8?q?em=20tramita=C3=A7=C3=A3o=20de=20materia=20Fix=20#2603?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sapl/materia/forms.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sapl/materia/forms.py b/sapl/materia/forms.py index a3a0725ce..eb84ed4d4 100644 --- a/sapl/materia/forms.py +++ b/sapl/materia/forms.py @@ -425,7 +425,7 @@ class TramitacaoForm(ModelForm): super(TramitacaoForm, self).__init__(*args, **kwargs) self.fields['data_tramitacao'].initial = timezone.now().date() ust = UnidadeTramitacao.objects.select_related().all() - unidade_tramitacao_destino = [(ut.pk, ut) for ut in ust if ut.comissao and ut.comissao.ativa] + unidade_tramitacao_destino = [('', '---------')]+[(ut.pk, ut) for ut in ust if ut.comissao and ut.comissao.ativa] unidade_tramitacao_destino.extend([(ut.pk, ut) for ut in ust if ut.orgao]) unidade_tramitacao_destino.extend([(ut.pk, ut) for ut in ust if ut.parlamentar]) self.fields['unidade_tramitacao_destino'].choices = unidade_tramitacao_destino