  
  factory = RequestFactory()
  
  
  class BasicViewSet(viewsets.ViewSet):
      def list(self, request, *args, **kwargs):
          return Response({'method': 'list'})
  
      @action()
 
</s> remove 
        self.lookup_field = kwargs.pop('lookup_field', self.lookup_field)
 </s> add         lookup_field = kwargs.pop('lookup_field', None)
        if lookup_field is not None:
            self.lookup_field = lookup_field </s> remove from rest_framework.response import Response
from rest_framework import viewsets
 </s> add from rest_framework import serializers, viewsets
from rest_framework.compat import include, patterns, url
urlpatterns = patterns('',)

  
  factory = RequestFactory()
  
urlpatterns = patterns('',)

  
  class BasicViewSet(viewsets.ViewSet):
      def list(self, request, *args, **kwargs):
          return Response({'method': 'list'})
  
      @action()
keep keep add keep keep keep keep keep keep
 HyperlinkedModelSerializer lookup_field option should apply to HyperlinkedIdentityField 
rest_framework/tests/test_routers.py