阅读背景:

Django过滤多对多的包含。

来源:互联网 

I am trying to filter a bunch of objects through a many-to-many relation. Because the trigger_roles field may contain multiple entries I tried the contains filter. But as that is designed to be used with strings I'm pretty much helpless how i should filter this relation (you can ignore the values_list() atm.).I am trying to filter a bunch of objects throug




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

分享到: