fixing birth date and registration bugs
This commit is contained in:
@@ -590,6 +590,7 @@ class RegistrationFormSex(RegistrationFormUniqueEmail):
|
||||
age = (timezone.now() - dob).days/365
|
||||
if age < 16:
|
||||
raise forms.ValidationError('Must be at least 16 years old to register')
|
||||
return self.cleaned_data['birthdate']
|
||||
|
||||
sex = forms.ChoiceField(required=True,
|
||||
choices=sexcategories,
|
||||
|
||||
Reference in New Issue
Block a user