0
我想做一个查询,选择ProblemSet的所有uuids,其问题包含至少一个特定问题类型的问题。我该如何在Django中做到这一点?在MySQL中它将是一个简单的连接,但Django的'__contains'不服务需要..django包含任何查询
谢谢!
class ProblemType:
name ..... (many fields)
class Problem:
problem_type = models.ManyToManyField(ProblemType)
...... (many fields)
class ProblemSet:
problems = models.ManyToMnayField(Problem)
uuid = models.CharField(...)
...... (many fields)