mirror of
https://github.com/nottinghamtec/PyRIGS.git
synced 2026-01-16 21:12:13 +00:00
Merge branch 'master' into duplicate-event
This commit is contained in:
@@ -12,16 +12,11 @@ from RIGS import models
|
||||
|
||||
#Registration
|
||||
class ProfileRegistrationFormUniqueEmail(RegistrationFormUniqueEmail):
|
||||
username = forms.CharField(required=True, max_length=30)
|
||||
first_name = forms.CharField(required=False, max_length=50)
|
||||
last_name = forms.CharField(required=False, max_length=50)
|
||||
initials = forms.CharField(required=True, max_length=5)
|
||||
phone = forms.CharField(required=False, max_length=13)
|
||||
captcha = ReCaptchaField()
|
||||
|
||||
class Meta:
|
||||
model = models.Profile
|
||||
fields = ('username','first_name','last_name','initials','phone')
|
||||
fields = ('username','email','first_name','last_name','initials','phone')
|
||||
|
||||
def clean_initials(self):
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user