在构建迁移我收到以下错误: 无法确定按类型“位置”的导航属性“Location.NorthLocation”表示的关系。要么手动配置关系,要么忽略模型中的该属性。 的位置实体: public class Location
{
public Guid Id { get; set; }
public DateTime CreatedWhen { get; set; }
我有这样的架构(非常简化的) from django.db import Models
class MainClass(models.Model):
a = models.IntegerField()
b = models.CharField()
class OtherClass(models.Model):
c = models.IntegerField()