I'm using django-guardian to implement object level permissions. I created custom permissions in the Models and I have migrated & tried resetting migrations and re-migrating, but I still run into a DoesNotExist
error:
Can anyone help me fix this?
I'm using django-guardian to implement object level permissions. I created custom permissions in the Models and I have migrated & tried resetting migrations and re-migrating, but I still run into a DoesNotExist
error:
Can anyone help me fix this?
As django-guardian uses django for creation of permissions, you would have to first create custom permissions as with any Django app.
What version of Django are you using? If it is 1.6 or lower you might have to run syncdb --all
to create the permissions. See documentation here.