Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有两个应用程序: 广告域
广告可以通过多对多关联到域。在我的广告模型中,我放了:
domains = models.ManyToManyField(Domain)
如何使它使用域应用程序而不是广告应用程序?
谢谢
domains = models.ManyToManyField('app.Domain')
“ app ”是包含域的应用名称
很抱歉,我所要做的就是导入应用程序模型:
from domains.models import Domain