Django : Syncdb incorrectly warns that many-to-many field is stale

后端 未结 1 1245
野性不改
野性不改 2021-02-20 01:39

I have a django application where one application has many-to-many relationship with a UserProfile. But whenever I do a syncdb, it warns me that app_users is stale field

相关标签:
1条回答
  • 2021-02-20 02:21

    Pay attention to the message. It's not claiming that your field is stale - it's talking about an entry in the Content Types model.

    In the shell, do this:

    from django.contrib.contenttypes.models import ContentType
    ct = ContentType.objects.get(app_label='Apps', model='app_users')
    ct.delete()
    
    0 讨论(0)
提交回复
热议问题