|
|
1
4
使用 generic relations 它可以做到这一点(使用实例ID和模型类),但是集成在Django中,您还可以得到一个快捷属性,该属性返回相关的实例,因此您不必自己查询它。 Example usage . |
|
2
1
退房 generic relations . |