阅读背景:

对于django模型上的任何查询,只对活动集为true的元素执行查询

来源:互联网 

Due to lack of planning I found myself in a situation where I had to introduce a Boolean field called "Active" at later stage in model.The idea is to return only elements that have active as true for any query on Db. One way possible would be to edit all my queries on model to add something like Due to lack of planning I found myself in a sit




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

分享到: