From 234cc8958c552f680009504f2bf43d6bbdef8aa3 Mon Sep 17 00:00:00 2001 From: Edward Ribeiro Date: Thu, 2 Aug 2018 14:58:05 -0300 Subject: [PATCH] Fixes #2092 Signed-off-by: Talitha Pumar --- sapl/base/forms.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/sapl/base/forms.py b/sapl/base/forms.py index de6b50403..974068b20 100644 --- a/sapl/base/forms.py +++ b/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)