class view_name(viewsets.ModelViewSet):
queryset = model_name.objects.raw('call stored_procedure();')
serializer_class = model_name_Serializers
permission_classes = [IsAuthenticated]
So, when I execute the above the rest framework view set. It works fine. But when I update any value which will effect the queryset of the stored procedure.
It still return the previous queryset not the updated one. I have then checked by running the call procedure sql statement in my database(mysql) where it returns the updated queryset.
But this raw function continues to show the queryset with the previous values. It only returns the updated queryset after restarting the localhost server.