makemigrations doesn't detect changes in model

前端 未结 6 987
孤独总比滥情好
孤独总比滥情好 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:54

    Another case is abstract classes. Make sure that your model’s metaclass does not have the abstract = True property.

提交回复
热议问题