

@detail_route(methods=['POST'])
def do_something(self, request, pk=None, **kwargs):
    mgr = request.manager_factory()
    mgr.do_something(request.data, pk=pk, **kwargs)
    return Response({
        'status': 'did_something',
    }, status=status.HTTP_200_OK)

dataset/ETHPy150Open dealertrack/djangorest-alchemy/djangorest_alchemy/tests/test_viewsets.py DeclModelViewSet.do_something/VarMisuse@31/37 `self`->`request`