equal
deleted
inserted
replaced
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: |