From 083b870b338073c4c62f072be449d0ebe3a1eaa6 Mon Sep 17 00:00:00 2001 From: PCoder Date: Sun, 16 Jul 2017 16:35:55 +0530 Subject: [PATCH] Formatted utils/forms.py --- utils/forms.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/utils/forms.py b/utils/forms.py index f8746c11..c521e3ba 100644 --- a/utils/forms.py +++ b/utils/forms.py @@ -5,11 +5,12 @@ from django.core.mail import EmailMultiAlternatives from django.utils.translation import ugettext_lazy as _ from django.contrib.auth import authenticate from membership.models import CustomUser + + # from utils.fields import CountryField class SignupFormMixin(forms.ModelForm): - confirm_password = forms.CharField(widget=forms.PasswordInput()) password = forms.CharField(widget=forms.PasswordInput()) @@ -87,7 +88,7 @@ class SetPasswordForm(forms.Form): if password1 != password2: raise forms.ValidationError( self.error_messages['password_mismatch'], - code='password_mismatch',) + code='password_mismatch', ) return password2