TIL DAY 26 || Django save() not working issue


Why save() is not working?


プロジェクトのミスで時間を無駄にしたので書いておきました.
save()は実際のdbに反映されていません.そのために半日うろうろした.
cart.product_option.stock -= cart.quantity
cart.save()
上はdbに更新するコードです.
でも死んでも更新できなかった、もとは...cart.product_optionインスタンスを更新する必要があります.cart例のみが更新された.

How I solved?