Getting a “The following content types are stale and need to be deleted” when trying to do a migrate. What does this mean, and how can I solve it?

不想你离开。 提交于 2019-12-03 23:53:34

The message you get is triggered when you remove/delete a model and do a migration.

In most cases, you can delete them safely. However, in some cases this might result to data loss. If other models have a foreign key to the removed model, these objects will also be deleted.

Here's the django ticket that requests to make deleting stale content types safer.

EDIT

As @x-yuri pointed, this ticket has been fixed and has been released in Django 1.11.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!