I've looked at
Issue 22485 and
Issue 22563, and I'm unsure if my issue is different. I've an employees app with an employee model. I've a tracking app that originally had 3 models each with a foreign key to auth_user. I made a migration for the tracking app to switch those 3 models foreign key to the employees.Employee model. When I try to apply the migration, I get
File "C:\Virtual\Django17c1\lib\site-packages\django\db\migrations\state.py", line 89, in render
model=lookup_model,
ValueError: Lookup failed for model referenced by field tracking.PropertyDescription.verified_by: employees.Employee
Stepping through the code, it's failing on line 79 when it's trying to find the employees app. The employees app is not in self.apps for some reason I've not been able to figure out, especially since the employees app is in the global apps.app_configs in migrate.py line 160. The employees app has been migrated.
How should I proceed? Thanks.