在django中关联关系大概可以分成many-to-one(foriegnkey)、one-to-one、many-to-many 这三种、它们有如下的类结构
class RelatedField(Field): class ForeignObject(RelatedField): class ForeignKey(ForeignObject): class OneToOneField(ForeignKey): class ManyToManyField(RelatedField):
----