Django:有什么区别(rel& field) [英] Django: what is the difference (rel & field)
本文介绍了Django:有什么区别(rel& field)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
Django的 models.ManyToManyField
和 models.ManyToManyRel
有什么区别?我对这些东西感到困惑.
What is the difference between Django's models.ManyToManyField
and models.ManyToManyRel
? I'm confused about this stuff.
推荐答案
如果您通过深入研究源代码发现了ManyToManyRel,则可以阅读该类的文档字符串.它没有记录在任何地方-是故意的,因为它不是供外部使用的.当然,这并不是要定义模型之间的实际字段关系.
If you discovered ManyToManyRel by digging into the source code, you can read the docstrings for the class. It's not documented anywhere - on purpose, because it's not for external use. It is certainly not meant for defining actual field relationships between models.
这篇关于Django:有什么区别(rel& field)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文