Hello Djangooos:

I am building a simple Django application, that shows products in 
items/employee_id url, the customer opens the link and start selecting the 
items by clicking on them, then an action button appears to prepare for 
submission to display a modal asking the customer to enter his data name, 
phone number location and email, then the customer either clicks on submit 
the order or cancel, if he clicks on submit the order button it will 
redirect to messenger chat page with order details where he can send the 
order which he selects, this popup window (handle_form_submission) asks the 
customer to either send the message or cancel sending, send the message 
button will open the Chat Page on The Agent chat page with a copy of the 
Order details and wait for the customer to send the order, the cancel will 
redirect the customer to the items/user_id url the same where he starts, if 
the user clicks on send the order, and then clicks on a back button from 
the browser it should redirect him also to the items/user_id url where he 
starts, to start a new order or close the page. 

I have two issues as follows: 

1- Cancel button in the popup redirect message doesn't redirect to the 
items/user_id url link, it redirects to the items/ 

2- After Sending the message, if clicks the back button on the browser it 
will take to the previous step which is the popup message, this back button 
should redirect to the items/user_id 


The order cycle is as follows: 

Selection > Prepare for submission > Submit the order > Send the message. 

I use session in Django project to store the user_id. 

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/0de3ae23-9883-49b9-8558-c70dba7a1e97n%40googlegroups.com.

Reply via email to