Django: Getting complement of queryset

I get a queryset for a certain model and I'd like to get its complement, i.e. all instances of that model that are *not* in the aforementioned queryset. How can I do that?
It would help to have the Django queryset chain you want the complement of, in order to give you the most precise way to get that complement.

以上就是Django: Getting complement of queryset的详细内容,更多请关注web前端其它相关文章!

赞(0) 打赏
未经允许不得转载:web前端首页 » WebStorm

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址

前端开发相关广告投放 更专业 更精准