开发者

Is it possible to override the Model.objects.all() method?

开发者 https://www.devze.com 2023-03-23 23:00 出处:网络
I want to return a filtered version of queryset when MyModel.objects.all() method 开发者_运维问答is invoked. Can this be done ?Custom managers.

I want to return a filtered version of queryset when MyModel.objects.all() method 开发者_运维问答is invoked. Can this be done ?


Custom managers.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号