How to get the authentication information in ModelViewSet?
How to get the authentication information in ModelViewSet? Question: I am using rest framework with ModelViewSet class DrawingViewSet(viewsets.ModelViewSet): queryset = m.Drawing.objects.all() serializer_class = s.DrawingSerializer filterset_fields = [‘user’] def list(self, request): queryset = m.Drawing.objects.all() serializer = s.DrawingSerializer(queryset, many=True) return Response(serializer.data) With this script, I can use filter such as /?user=1 Howver this user=1 is not necesary …