Browse Source

Fixes #2092

Signed-off-by: Talitha Pumar <tapumar@gmail.com>
pull/2110/head
Edward Ribeiro 6 years ago
parent
commit
234cc8958c
  1. 4
      sapl/base/forms.py

4
sapl/base/forms.py

@ -45,7 +45,7 @@ STATUS_USER_CHOICE = [
def get_roles():
roles = [(g.id, g.name) for g in Group.objects.all().order_by('name')
if g.name != 'Votante' and g.name != 'Autor']
if g.name != 'Votante']
return roles
@ -62,8 +62,6 @@ class UsuarioCreateForm(ModelForm):
user_active = forms.ChoiceField(required=False, choices=YES_NO_CHOICES,
label="Usuário ativo?", initial='True')
#ROLES = [(g.id, g.name) for g in Group.objects.all().order_by('name')]
roles = forms.MultipleChoiceField(
required=True, widget=forms.CheckboxSelectMultiple(), choices=get_roles)

Loading…
Cancel
Save