Django - makemigrations - No changes detected

前端 未结 30 1495
伪装坚强ぢ
伪装坚强ぢ 2020-12-02 04:44

I was trying to create migrations within an existing app using the makemigrations command but it outputs \"No changes detected\".

Usually I create new apps using the

30条回答
  •  温柔的废话
    2020-12-02 05:32

    One more edge case and solution:

    I added a boolean field, and at the same time added an @property referencing it, with the same name (doh). Commented the property and migration sees and adds the new field. Renamed the property and all is good.

提交回复
热议问题