Django 多模型误差

Django 多模型误差,django,django-models,django-orm,Django,Django Models,Django Orm,我有一个邮轮优惠课程,和一个叫SpecialInterest的模特有关。我现在意识到,在我的LandOffer模型(其他地方)中也有同样的事情发生。所以我想摆脱cruise.SpecialLinterest,用land.SpecialLinterest取代它 这是我的错误: 错误:一个或多个模型未验证: cruise.cruiseoffer:“特殊兴趣”与model land.models.SpecialInterest存在m2m关系,该关系尚未安装或是抽象的 我放弃了CruiseOffer表,

我有一个邮轮优惠课程,和一个叫SpecialInterest的模特有关。我现在意识到,在我的LandOffer模型(其他地方)中也有同样的事情发生。所以我想摆脱cruise.SpecialLinterest,用land.SpecialLinterest取代它

这是我的错误: 错误:一个或多个模型未验证: cruise.cruiseoffer:“特殊兴趣”与model land.models.SpecialInterest存在m2m关系,该关系尚未安装或是抽象的

我放弃了CruiseOffer表,但当我同步数据库时失败了

帮忙

正确的语法是:

from land.models import SpecialInterest
...
class Crui...
    ...
    special_interest = models.ManyToManyField(SpecialInterest)
正确的语法是:

from land.models import SpecialInterest
...
class Crui...
    ...
    special_interest = models.ManyToManyField(SpecialInterest)

land
是否列在安装的应用程序设置中?旋转了一天后,我再次查看了@danihp响应,并意识到我的SpecialLinterest表中有引号。删除了它们,我现在开始工作。
land
是否列在安装的应用程序设置中?旋转了一天之后,我再次查看了@danihp响应,发现我的SpecialLinterest表中有引号。移除它们,我现在开始做生意了。