阅读背景:

Django模型,使用属性覆盖save方法或自定义方法

来源:互联网 

I'm working with some models that has to return a sum of model fields. Is it better to override the save method on the model or just create a custom method that returns the sum. Is there any performance issues with either of the solutions?I'm working with some models that has to return




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: