1👍
✅
The reason is that you’ve got imports loop in your models structure. Using the model’s name "school.School"
for ForeignKey
should fix this. Or you could rethink your models’ design.
Source:stackexchange.com