Browse Source

Fix #662

pull/903/head
Edward Ribeiro 8 years ago
parent
commit
e9a0f23dc7
  1. 4
      sapl/materia/forms.py

4
sapl/materia/forms.py

@ -174,7 +174,9 @@ class RelatoriaForm(ModelForm):
def __init__(self, *args, **kwargs):
super(RelatoriaForm, self).__init__(*args, **kwargs)
self.fields['parlamentar'].queryset = Parlamentar.objects.filter(
ativo=True).order_by('nome_completo')
ativo=True, id__in=Participacao.objects.filter(
composicao_id=self.initial['comissao']
).values_list('parlamentar_id')).order_by('nome_completo')
def clean(self):
cleaned_data = self.cleaned_data

Loading…
Cancel
Save