summaryrefslogtreecommitdiff
path: root/taskapp/forms/user.py
diff options
context:
space:
mode:
Diffstat (limited to 'taskapp/forms/user.py')
-rw-r--r--taskapp/forms/user.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/taskapp/forms/user.py b/taskapp/forms/user.py
index 46dc830..7dc1f25 100644
--- a/taskapp/forms/user.py
+++ b/taskapp/forms/user.py
@@ -3,7 +3,7 @@
from django import forms
from pytask.taskapp.models import GENDER_CHOICES, Profile
from django.forms import ModelForm
-from registration.forms import RegistrationForm
+from registration.forms import RegistrationFormUniqueEmail
from registration.models import RegistrationProfile
class UserProfileEditForm(ModelForm):
@@ -13,7 +13,7 @@ class UserProfileEditForm(ModelForm):
model = Profile
exclude = ('user','rights','dob','credits')
-class RegistrationFormCustom(RegistrationForm):
+class RegistrationFormCustom(RegistrationFormUniqueEmail):
"""Used instead of RegistrationForm used by default django-registration backend, this adds date of birth and gender to the default django-registration RegistrationForm"""
dob = forms.DateField(help_text = "YYYY-MM-DD", required=True, label=u'date of birth')