Opened 11 years ago
Closed 11 years ago
#21968 closed Bug (fixed)
Django doesn't detect initial migration when an app is a dependency
Description ¶
I have app A, and app B, neither of which have migrations defined (new project, new apps). app A imports a model as an FK from app B. I make app A's migrations with ./manage.py makemigrations app_a
, and app_a/migrations/0001_initial.py
is created. In it, app B is marked as a dependency: dependencies = [('app_b', '__first__'),]
. If I try to run ./manage.py makemigrations app_b
, I get No changes detected in app 'app_b'
If I remove app A's migrations entirely, and re-run app B's makemigrations, I get an initial migration as I would expect.
Change History (4)
comment:1 by , 11 years ago
Type: | Uncategorized → Bug |
---|
comment:2 by , 11 years ago
Needs tests: | set |
---|
comment:3 by , 11 years ago
Triage Stage: | Unreviewed → Accepted |
---|
comment:4 by , 11 years ago
Owner: | set to |
---|---|
Resolution: | → fixed |
Status: | new → closed |
In 2085f53f567f7619ecf3eab93fdacab7a5991a11: