5👍
✅
You can put the model class name as string, as
class Person(models.Model):
department = models.ForeignKey('Department')
....
First few lines of django doc on foreignkey
relationship explain this.
Source:stackexchange.com