#context.update(page.prelude_env())
return context
- #my_acc form value processing
-
-
-
-
-
-@login_required
-# View for my_account form
-#def my_account(request):
-# return render(request, 'my_account.html', {
-# #'form': form,
-# 'topmenu_items': topmenu_items('My Account', request),
-# 'username': the_user (request)
-# })
-
-
@login_required
- def acc_process(request):
-
+ #my_acc form value processing
+ def account_process(request):
- # getting the user_id from the session [now hardcoded]
- get_user = PendingUser.objects.get(id='1') # here we will get the id/email from session e.g., person.email
- # getting user info from manifold
+ user_query = Query().get('local:user').select('password','config')
+ user_details = execute_query(request, user_query)
+
-
if 'submit_name' in request.POST:
edited_first_name = request.POST['fname']
edited_last_name = request.POST['lname']