I need an Ajax for a Django template

Job ID: 31082346

Budget: €8 – €30 EUR

Hi i need some ajax which checks a view for a database change:
I have for example:
User 1, User 2

1.- The User1 creates an order for a delivery, this order includes the User2 id, this action keeps the User1 in the page "waiting.html" with a bootstrap spinner and a message saying he has to wait for the User2's response.

2.- The User2 receives a notification that a job has been assigned.

3.- The User2 has two options: To accept or to cancel. Once the action is selected, in the database a table field named "status" changes.

4. With any option the User2 has chosen, the ajax working in the template where User1 is has to be redirected to the page success.html or fail.html depending on the User2 selection.

5.- I want this ajax to check the database in the step 4 so that the User1 page changes according to the action of User2.
The dead line i have now is tuesday the 10th.
Related categories: JavaScript Python AJAX Django