app/soc/views/site/sponsor/profile.py
changeset 448 075360be6743
parent 435 829fe8302a8b
child 481 94834a1e6c01
equal deleted inserted replaced
447:83b49d60effd 448:075360be6743
   114   # create default template context for use with any templates
   114   # create default template context for use with any templates
   115   context = helper.responses.getUniversalContext(request)
   115   context = helper.responses.getUniversalContext(request)
   116   context['page'] = page
   116   context['page'] = page
   117 
   117 
   118   logged_in_id = users.get_current_user()
   118   logged_in_id = users.get_current_user()
   119   user = models.user.logic.getFromFields(email=logged_in_id.email())
   119   user = models.user.logic.getForFields({'id': logged_in_id}, unique=True)
   120   sponsor_form = None
   120   sponsor_form = None
   121   existing_sponsor = None
   121   existing_sponsor = None
   122 
   122 
   123   # try to fetch Sponsor entity corresponding to link_name if one exists
   123   # try to fetch Sponsor entity corresponding to link_name if one exists
   124   try:
   124   try: