From 4e6fdbbbb89571f17375020e99bfa8c5c0a901bb Mon Sep 17 00:00:00 2001 From: Edward Ribeiro Date: Thu, 9 Mar 2017 14:46:08 -0300 Subject: [PATCH] =?UTF-8?q?Reverte=20mudan=C3=A7a?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sapl/parlamentares/forms.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/sapl/parlamentares/forms.py b/sapl/parlamentares/forms.py index bdcf2d232..6c5331fdd 100644 --- a/sapl/parlamentares/forms.py +++ b/sapl/parlamentares/forms.py @@ -290,11 +290,6 @@ class VotanteForm(ModelForm): def clean(self): cd = self.cleaned_data - username = cd['username'] - if get_user_model().objects.filter(username=username).exists(): - raise ValidationError(_('Não foi possível salvar registro,\ - pois usuário existente')) - if ('senha' not in cd or 'senha_confirma' not in cd or not cd['senha'] or not cd['senha_confirma']): raise ValidationError(_(