2👍
If:
- You are just interested in recovering the information from a json you generated before knowing this issue
- You don’t care about the data of administration logs
- You (or someone else) generated the json excluding auth.permission and contenttypes, using a command like:
python manage.py dumpdata --exclude auth.permission --exclude contenttypes > db.json
You may recover the information trapped in the json with a text editor, opening the file and deleting the elements associate with the admin.logentry model.
That worked for me!
0👍
If you exclude the contenttype app as in your example, you may not be able to export any app that has foreginkeys against that app. Removing the --exclude contenttypes
might make it work.
Source:stackexchange.com