app/soc/views/models/user_self.py
changeset 857 9767c1afe494
parent 840 d3f9fff0860b
child 858 e79e7a22326f
equal deleted inserted replaced
856:3d14b31e72e4 857:9767c1afe494
   174 
   174 
   175       if form.is_valid():
   175       if form.is_valid():
   176         new_link_id = form.cleaned_data.get('link_id')
   176         new_link_id = form.cleaned_data.get('link_id')
   177         properties = {
   177         properties = {
   178           'link_id': new_link_id,
   178           'link_id': new_link_id,
   179           'name': form.cleaned_data.get("name"),
   179           'name': form.cleaned_data.get('name'),
   180           'account': account,
   180           'account': account,
       
   181           'agrees_to_tos': form.cleaned_data.get('agrees_to_tos'),
   181         }
   182         }
   182 
   183 
   183         # check if user account is not in former_accounts
   184         # check if user account is not in former_accounts
   184         # if it is show error message that account is invalid
   185         # if it is show error message that account is invalid
   185         if user_logic.logic.isFormerAccount(account):
   186         if user_logic.logic.isFormerAccount(account):