#Custom permissions DRF
3 messages · Page 1 of 1 (latest)
Extending BasePermission from django rest framework... and in your views have permision_classes = CustomPermission?
Here's how it's implemented in the source code:
https://github.com/encode/django-rest-framework/blob/master/rest_framework/permissions.py
have your views, implementing has_permission or has_obj_permission -> for object-level permissions.
Hope that helps... Here's a small guide on how to create one: