This circle is for technical discussion of backend programming.
Ricciflows
Invalid Date
未来是不可知的,但又是确定的。我们只是在追逐一个未知而又确定的结果......
智力值
0
金币
粉丝
I have a Django model that used to look like this:class Car(models.Model): manufacturer_id = models.IntegerField()There is another model called Manufacturer that the id field refers to. However, I realized that it would be useful to use Django's built-in foreign key functionality, so I changed the model to this:class Car(models.Model): manufacturer = models.ForeignKey(Manufacturer)This change appears to work fine immediately, queries work without errors, but when I try to run migrations, ...