makemigrations doesn't detect changes in model

前端 未结 6 992
孤独总比滥情好
孤独总比滥情好 2021-02-13 13:57

I\'m using django 1.9.6. I recently deleted my migrations and ran migrate --run-syncdb and makemigrations my_app. Today I added a new field to one of m

6条回答
  •  逝去的感伤
    2021-02-13 14:56

    I had the same issue. I realised I had a property defined on the model with the same name as a field I was trying to add on the model. Ensure the model doesn't have a model property/method with the same name as the field you are trying to add.

提交回复
热议问题