app/soc/views/site/user/profile.py
changeset 435 829fe8302a8b
parent 408 7cd6bdfbf95c
child 445 31927f21970d
equal deleted inserted replaced
434:a4fc430fefac 435:829fe8302a8b
   442         'link_name': link_name,
   442         'link_name': link_name,
   443         'nick_name': form.cleaned_data.get('nick_name'),
   443         'nick_name': form.cleaned_data.get('nick_name'),
   444         'is_developer': form.cleaned_data.get('is_developer'),
   444         'is_developer': form.cleaned_data.get('is_developer'),
   445       }
   445       }
   446 
   446 
   447       user = models.user.logic.updateOrCreateFromFields(properties, 
   447       key_fields = {'email': form_id.email()}
   448                                                         email=form_id.email())
   448       user = models.user.logic.updateOrCreateFromFields(properties,
       
   449                                                         key_fields)
   449 
   450 
   450       if not user:
   451       if not user:
   451         return http.HttpResponseRedirect('/')
   452         return http.HttpResponseRedirect('/')
   452 
   453 
   453       # redirect to new /site/user/profile/new_link_name?s=0
   454       # redirect to new /site/user/profile/new_link_name?s=0