You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am looking for a solution to check the permission in ModelViewSet so that each of Create, Read, Update and Delete permissions are checked separately.
That is, say if somebody trying to access the api for create an object on MyModel, then the permission should check for django's inbuilt add_mymodel permission. I have a role create with this permission added to it. But couldn't find an option to do it using the provided HasPermissionsMixin mixin. note that I want to check similarly change_mymodel, view_mymodel, delete_mymodel based on the action performed in the api.
The text was updated successfully, but these errors were encountered:
I am looking for a solution to check the permission in ModelViewSet so that each of Create, Read, Update and Delete permissions are checked separately.
That is, say if somebody trying to access the api for create an object on
MyModel
, then the permission should check for django's inbuilt add_mymodel permission. I have a role create with this permission added to it. But couldn't find an option to do it using the providedHasPermissionsMixin
mixin. note that I want to check similarly change_mymodel, view_mymodel, delete_mymodel based on the action performed in the api.The text was updated successfully, but these errors were encountered: