Heroku loaddata error
#5159
|
Hello, I am trying to deploy my django project on heroku and i got the deserialization error, permission matching query does not exist while I run the command 'heroku run python manage.py loaddata '. Please help me. Thank you. Here is my github repo for project. https://github.com/hainhtat/carzone-github. Here is the screenshot of the error. |
Answered by
nijel
Jan 7, 2021
Replies: 1 comment
|
It seems that the auth.user objects are not in sync with real permissions. Not sure how it's possible, but it has no practical impact as Weblate no longer uses Django permissions. Quick fix: drop all auth.user objects from the json file. They are no longer used by Weblate, but the model cannot be removed from the database because of Django limitations. |
0 replies
Answer selected by
hainhtat
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

It seems that the auth.user objects are not in sync with real permissions. Not sure how it's possible, but it has no practical impact as Weblate no longer uses Django permissions.
Quick fix: drop all auth.user objects from the json file. They are no longer used by Weblate, but the model cannot be removed from the database because of Django limitations.