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"
當我運行python manage.py validate
我得到這個錯誤<class>與模型<class>的關係,這無論是尚未安裝或者是抽象的
<MiniHu> has a relation with model <Mini>, which has either not been installed or is abstract.
什麼是'BaseMaternalVisitModel'?你有沒有syncdb'd並實際創建表? – 2012-07-06 11:05:40
BaseClass是一個抽象類嗎? – Tisho 2012-07-06 11:17:31