title: Retrieve Single Object in Modelviewset
body: <p>I was using CBV, ModelViewSet but somehow my API Keep showing all the Objects inside, how i get my ModelViewSet retrieve a single object that base on my sku ?</p>
  <p>api/views.py</p>
  <pre><code>class SamAPIViewSet(viewsets.ModelViewSet):
      queryset = SamModels.objects.all()
      serializer_class = SamSerializers
      lookup_field = 'pk'
  
      def get_queryset(self):
          return self.queryset
  
      def get_object(self):
          sku_id = self.kwargs['pk']
          return self.get_queryset().filter(id=sku_id)
  
      def list(self, request):
          products = SamModels.objects.all()
          serializers = self.get_serializer(products, many=True)
          return Response(serializers.data)
  
      def retrieve(self, request, *args, **kwargs):
          instance = self.get_object()
          serializers = self.get_serializer(instance)
          return Response(serializers.data)
  </code></pre>
  <p>api/urls.py</p>
  <pre><code>sam_api_list = SamAPIViewSet.as_view({
  'get': 'list'
  })
  
  sam_api_detail = SamAPIViewSet.as_view({
  'get': 'retrieve'
  })
  
  urlpatterns = [
      url(r'sam', sam_api_list, name='api-sam'),
      url(r'sam/&lt;int:pk&gt;', sam_api_detail, name='api-sam-detail'),
  ]
  </code></pre>
  <p>sam/1, it return all of my objects, i am not sure what wrong, my object has name, id, sku and how do i change my view to get retrieve single object base on my sku and not my id ?</p>