From a0faad580add2b4452f07ab4e13c3995c8e2bec9 Mon Sep 17 00:00:00 2001 From: Serge Kokouvi AGOUNKE Date: Mon, 22 Oct 2018 16:38:21 +0000 Subject: [PATCH] email field is required For send an activation email --- src/profiles/forms.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/profiles/forms.py b/src/profiles/forms.py index 3ff8d7f..98290e1 100644 --- a/src/profiles/forms.py +++ b/src/profiles/forms.py @@ -8,8 +8,9 @@ class RegisterForm(forms.ModelForm): """A form for creating new users. Includes all the required fields, plus a repeated password.""" - password1 = forms.CharField(label='Password', widget=forms.PasswordInput) - password2 = forms.CharField(label='Password confirmation', widget=forms.PasswordInput) + email = forms.EmailField(label='Email address') + password1 = forms.CharField(label='Password', widget=forms.PasswordInput) + password2 = forms.CharField(label='Password confirmation', widget=forms.PasswordInput) class Meta: model = User