Checking product's stock before its updates
Here I am using pre_save signal.
No extra packages needed .
run
http://127.0.0.1:8000/myapi/
Try updating a product's stock quantity by more than current stock , The situvation is subtracting quantity of stock when a an order is made
use patch method for test