[Answered ]-Django REST Updateview with PUT POST

2👍

✅

You don’t really needs to define update(request, *args, **kwargs) in DRF views. For update api you can use this

class RighePresetUpdateView(UpdateAPIView):

    serializer_class = 'your serializer'
    queryset = presetrows.objects.filter(stato=True)

Provides put and patch method handlers implicitly.

Leave a comment