InvalidBasesError: Cannot resolve bases for []

后端 未结 14 957
遥遥无期
遥遥无期 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:52

    I faced the same issue and adding app_label attribute in class Meta: solved the error :

    class GroupProxy(Group):
        class Meta:
            proxy = True
            app_label = ''
            verbose_name = Group._meta.verbose_name
            verbose_name_plural = Group._meta.verbose_name_plural
    

提交回复
热议问题