Cancel a save from save method in django models

后端 未结 0 1400
情话喂你
情话喂你 2021-02-11 02:54

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

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