When I run tests I get this error during database initialization:
django.db.migrations.state.InvalidBasesError: Cannot resolve bases for [
If this is only happening when running python manage.py test
(maybe because you have already made the necessary migrations), you should explicitly say that contrib.auth
should not migrate in the MIGRATION_MODULES
of your settings module.
MIGRATION_MODULES(
'auth': "contrib.auth.migrations_not_used_in_tests",
)