Check if the request should be permitted for a given parent object.
        Raises an appropriate exception if the request is not permitted.

def check_parent_object_permissions(self, request, obj):
        """
        Check if the request should be permitted for a given parent object.
        Raises an appropriate exception if the request is not permitted.
        """
        for permission in self.get_parent_permissions():
            if not permission.has_object_permission(request, self, obj):
                self.permission_denied(request)