一个 Django ORM 新手问题。我有以下型号:
class Book(models.Model):
title = models.CharField(max_length=100,null=True)
class BookQuestions(models.Model):
video = models.ForeignKey(Book,null=True)
class BookAnswered(models.Model):
answer = models.ForeignKey(BookQuestions, null=True)
user = models.ForeignKey(User)
如何获取用户回答了哪些问题的 Book 对象?