stale content types while syncdb in Django

前端 未结 1 499
挽巷
挽巷 2021-02-07 15:03

While I\'m trying to syncdb for my django project, I\'m seeing following complains:

The following content types are stale and need to be deleted:

m         


        
1条回答
  •  心在旅途
    2021-02-07 15:21

    Normally you can delete them safely, as these are content types where no model exists anymore. The only thing you should be aware of is, that if you had other models pointing to the ContentType model via a ForeignKey these objects will be deleted as well. If you didn't set any foreign keys to ContentType at all nothing bad can happen, if you did evaluate if you would still need the objects that have a foreign key to the content type you are about to delete (if there are any).

    0 讨论(0)
提交回复
热议问题