<class>与model <class>有关系,它没有安装或者是抽象的

Twe*_*ekz 1 django

from django.db import models    
from audit_trail.audit import AuditTrail    
from my_base_model.classes import BaseUuidModel                                    
from my_class_base import BaseClass

class Mini(BaseMaternalVisitModel):
    my_class_base = models.ForeignKey(BaseClass) 

class MiniHu(BaseUuidModel): 
    myclass = models.ForeignKey(Mini)   

    class Meta:
         app_label="classes"
Run Code Online (Sandbox Code Playgroud)

当我跑步时,python manage.py validate我得到这个错误

<MiniHu> has a relation with model <Mini>, which has either not been installed or is abstract.
Run Code Online (Sandbox Code Playgroud)

Fre*_*red 11

添加:

class Meta:
    app_label="classes"
Run Code Online (Sandbox Code Playgroud)

对Mini进行分类,以便他们可以在同一个应用程序中找到对方.