app/soc/views/site/user/profile.py
changeset 389 9b873166d7d5
parent 374 9363b9dc2983
child 408 7cd6bdfbf95c
equal deleted inserted replaced
388:699b206b64b7 389:9b873166d7d5
   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