14👍
The migrations need to have “straight” dependency chain, i.e. migration 0003 needs to depend on migration 0002, and 0002 on 0001.
You need to define this in the 0003_third.py like this:
class Migration(migrations.Migration):
dependencies = [
('modulename', '0002_second'),
]
0👍
Seems like you have injected models of other applications.
Define TARGET_APP in your migrations, seems like migrations loader can’t correctly identify target app.
Source:stackexchange.com