I was wondering do we need to query all the Users for DELETE/GET/PATCH operations?
class UserDetailView(generics.RetrieveUpdateDestroyAPIView):
queryset = User.objects.all()
serializer_class = UserSerializer
lookup_url_kwarg = 'user_id'
lookup_field = 'user_id'
how can we query users by just the user_id in the queryset, and is this a correct approach?