I have a viewset
subclassing from modelviewset
, I add next:
authication_classes = [SessionAuthentication,BasicAuthentication]
permission_classes = [IsAuthenticated]
Then, got following message when list, detail/retrieve and put requests.
"detail": "Authentication credentials were not provided."
What should i change to only give this message when I update the data ??