Django Rest framework Viewset Permissions "create" without "list"
<p>I have the following viewset:</p>

<pre><code>class ActivityViewSet(viewsets.ModelViewSet):
    queryset = Activity.objects.all()
    serializer_class = ActivitySerializer

    def get_permissions(self):
        if self.action in ['update','partial_update','destroy','list']:
            self.permission_classes = [permissions.IsAdminUser,]
        elif self.action in ['create']:
            self.permission_classes = [permissions.IsAuthenticated,]
        else :
            self.permission_classes = [permissions.AllowAny,]
        return super(self.__class__, self).get_permissions()
</code></pre>

<p>As seen, Im trying to allow the 'create' method without allowing the 'list', for an Authenticated user (which is not an admin).
Weirdly, this Viewset results no create nor list for the Authenticated user.
Iv'e checked, just to rull off, the following code:</p>

<pre><code>class RouteOrderingDetail(mixins.CreateModelMixin, 
                   mixins.RetrieveModelMixin, 
                   mixins.DestroyModelMixin,
                   mixins.UpdateModelMixin,
                   viewsets.GenericViewSet):
    queryset = RouteOrdering.objects.all()
    serializer_class = RouteOrderingSerializer
</code></pre>

<p>This <strong>did</strong> allowed for a view in which there is create but not list (but its not usable for me, since i do need the list option avilable.</p>

<p>Hope the problem is clear. Any help will be appriciated.</p>