diff --git a/sapl/comissoes/forms.py b/sapl/comissoes/forms.py index 75b45c976..db1822e4a 100644 --- a/sapl/comissoes/forms.py +++ b/sapl/comissoes/forms.py @@ -100,7 +100,7 @@ class ParticipacaoCreateForm(forms.ModelForm): exclude(id__in=id_part) eligible = self.verifica() result = list(set(qs) & set(eligible)) - if not cmp(result, eligible): # se igual a 0 significa que o qs e o eli são iguais! + if result == eligible: self.fields['parlamentar'].queryset = qs else: ids = [e.id for e in eligible] diff --git a/sapl/templates/norma/normajuridica_filter.html b/sapl/templates/norma/normajuridica_filter.html index 511f20a01..fcc176eda 100644 --- a/sapl/templates/norma/normajuridica_filter.html +++ b/sapl/templates/norma/normajuridica_filter.html @@ -84,6 +84,18 @@