在構建遷移我收到以下錯誤: 無法確定按類型「位置」的導航屬性「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()