detail not found when overriding get_queryset in ModelViewSet
<p>I'm overriding get_queryset in a ModelViewSet to support "me" as filter and multiple pk search:</p>

<pre><code>class UserViewSet(viewsets.ModelViewSet):
queryset = UserProfile.objects.all() 
serializer_class = UserProfileSerializer    

def get_queryset(self):
    qs = UserProfile.objects.all() 

    if 'pk' in self.kwargs:
        pk_user = self.kwargs['pk']

        if ',' in pk_user: # Multiquery             
            pk_users = pk_user.split(',')
            qs = qs.filter(pk__in=pk_users)
        elif pk_user == "me":
            qs = qs.filter(pk=self.request.user)
        else:
            qs = qs.filter(pk=pk_user)

    # By default return all the items           
    return qs
</code></pre>

<p>I'm using the following serializer:</p>

<pre><code>class UserProfileSerializer(serializers.ModelSerializer):
    avatar_thumbnail_small = serializers.ImageField(read_only=True)
    avatar_thumbnail_medium = serializers.ImageField(read_only=True)

    id = serializers.CharField(source='user.id')
    username = serializers.CharField(source='user.username')
    firstname = serializers.CharField(source='user.first_name')
    lastname = serializers.CharField(source='user.last_name')


    class Meta:
        model = UserProfile
        fields = ('id', 'username', 'firstname', 'lastname', 'karma', 'avatar_thumbnail_small', 'avatar_thumbnail_medium', 'contacts', 'suggested_contacts')
</code></pre>

<p>and I've registered the url in urls.py</p>

<pre><code>router = routers.DefaultRouter()
router.register(r'users', app.views_rest.UserViewSet, base_name="users")
</code></pre>

<p>but when I tried to GET the url /api/users/2,3/ or /api/users/me/ it gives a json message saying that detail is not found.</p>

<p>/api/users/2/, /api/users/3/ and /api/users/ works fine.</p>

<p>Thanks for the help.</p>