[Solved]: Unit testing migrations [Was: Related model 'company.user' cannot be resolved]

2021-07-07 Thread Mike Dewhirst
mpany')), ('user', models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, related_name='userprofile', to=settings.AUTH_USER_MODEL)), ], options={ 'verbose_name': 'user profile',

Unit testing migrations [Was: Related model 'company.user' cannot be resolved]

2021-07-06 Thread Mike Dewhirst
itial wouldn't work due to lots of other models looking for settings.AUTH_USER_MODEL which Django couldn't find in the company app so I finessed my own fake migrations. That also seemed to work and the job seemed done. BUT manage.py test now fails with "Related model 'company.

Related model 'company.user' cannot be resolved

2021-07-05 Thread Mike Dewhirst
due to lots of other models looking for settings.AUTH_USER_MODEL which Django couldn't find in the company app so I finessed my own fake migrations. That also seemed to work and the job seemed done. BUT manage.py test now fails with "Related model 'company.user' cannot be resolved"