Answer the question
In order to leave comments, you need to log in
How to cross-link models of different Django applications?
The situation is this:
Answer the question
In order to leave comments, you need to log in
Do not import model classes, but pass in ForeignKey
or ManyToManyField
pass a string with the class name, instead of the class itself:
class A(models.Model):
b = models.ForeignKey('B')
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question