5👍
✅
django.contrib.auth
depends on django.contrib.contenttypes
because auth.models.Permission.content_type
is a ForeignKey(ContentType)
.
Solution: add ContentType in your data dump, ie. dumpdata with the following arguments: auth.group contenttypes.contenttype auth.permission
👤jpic
Source:stackexchange.com