Working saving of registration data, need this doesn't create the required registration profile though.

Might need to find a way to invoke automatically then just append the new user data to the end.
This commit is contained in:
Tom Price
2015-05-21 16:04:12 +01:00
parent 8b26103776
commit a95dd34bea
3 changed files with 18 additions and 3 deletions

View File

@@ -16,7 +16,11 @@ class ProfileRegistrationFormUniqueEmail(RegistrationFormUniqueEmail):
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()
# captcha = ReCaptchaField()
class Meta:
model = models.Profile
fields = ('first_name','last_name','initials','phone')
def clean_initials(self):
"""