Cancel a save from save method in django models

后端 未结 0 545
孤独总比滥情好
孤独总比滥情好 2021-02-11 02:39

So I have django model and I want to override save so that it only saves on certain instances. Is there a way to avoid a save from happening if a condition is met? The idea is i

相关标签:
回答
  • 消灭零回复
提交回复
热议问题