在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):

 

 

 

----

相关文章:

  • 2021-11-27
  • 2021-11-27
  • 2022-01-16
  • 2021-11-18
  • 2021-11-18
  • 2021-11-08
猜你喜欢
  • 2021-08-22
  • 2021-09-03
  • 2022-12-23
  • 2021-08-25
  • 2021-05-01
  • 2021-06-21
相关资源
相似解决方案