InvalidBasesError: Cannot resolve bases for []

后端 未结 14 1183
遥遥无期
遥遥无期 2021-02-03 23:03

When I run tests I get this error during database initialization:

django.db.migrations.state.InvalidBasesError: Cannot resolve bases for [

        
14条回答
  •  半阙折子戏
    2021-02-03 23:28

    happened to me with no other app - just because I renamed a model which was a base for other models (and maybe created that sub-models within the same migration) renaming the super-model to it's original name solved it for me

提交回复
热议问题