diff --git a/symposion/forms.py b/symposion/forms.py index 0a623606828b87b372f69562af7274c0fcf37f63..7799e06aef6193727445c915dd7e51e8235c4c07 100644 --- a/symposion/forms.py +++ b/symposion/forms.py @@ -4,7 +4,7 @@ import account.forms class SignupForm(account.forms.SignupForm): - + first_name = forms.CharField() last_name = forms.CharField() email_confirm = forms.EmailField(label="Confirm Email") @@ -20,11 +20,12 @@ class SignupForm(account.forms.SignupForm): "password", "password_confirm" ] - + def clean_email_confirm(self): email = self.cleaned_data.get("email") email_confirm = self.cleaned_data["email_confirm"] if email: if email != email_confirm: - raise forms.ValidationError("Email address must match previously typed email address") + raise forms.ValidationError( + "Email address must match previously typed email address") return email_confirm