def account_info_result(request, venue_id, template_name="registration/account_info_result.html"): postdata = request.POST.copy() form = UserProfileForm(postdata) if form.is_valid(): profile.set(request) form_message='Account info successfully saved.' form_title='Data Saved' else: form_message='Error: incomplete information.' form_title='Data Error' return render_to_response(template_name, locals(), context_instance=RequestContext(request))
def set(request): """ updates the information stored in the user's profile """ profile = retrieve(request) profile_form = UserProfileForm(request.POST, instance=profile) profile_form.save()