equal
deleted
inserted
replaced
397 |
397 |
398 def clean_id(self): |
398 def clean_id(self): |
399 new_email = self.cleaned_data.get('id') |
399 new_email = self.cleaned_data.get('id') |
400 form_id = users.User(email=new_email) |
400 form_id = users.User(email=new_email) |
401 if models.user.logic.getFromFields(email=form_id.email()): |
401 if models.user.logic.getFromFields(email=form_id.email()): |
402 raise forms.ValidationError("This account is already in use.") |
402 raise forms.ValidationError("This account is already in use.") |
403 return form_id |
403 return form_id |
404 |
404 |
405 |
405 |
406 DEF_SITE_CREATE_USER_PROFILE_TMPL = 'soc/site/user/profile/edit.html' |
406 DEF_SITE_CREATE_USER_PROFILE_TMPL = 'soc/site/user/profile/edit.html' |
407 |
407 |