11👍
✅
This is the wrong approach. Rather than trying to access keyword arguments there, you should be using object-level permissions and checking has_object_permission
in your permission class.
Source:stackexchange.com