api.viewsets.
OwnerViewSet
(**kwargs)[source]¶A simple ViewSet for objects filtered by their ‘owner’ attribute.
To use it, at minimum you’ll need to provide the serializer_class attribute and the model attribute shortcut.
permission_classes
= [<class 'rest_framework.permissions.IsAuthenticated'>, <class 'api.permissions.IsOwner'>]¶