我有遵循这种模式的模型:
class House():
name = *XYZ*
class Person():
name = *XYZ*
lives = ForeignKey(House)
class Item():
name = *XYZ*
owner = ForeignKey(Person)
我将如何查询特定House中的项目。
我有遵循这种模式的模型:
class House():
name = *XYZ*
class Person():
name = *XYZ*
lives = ForeignKey(House)
class Item():
name = *XYZ*
owner = ForeignKey(Person)
我将如何查询特定House中的项目。