      url = HyperlinkedIdentityField()
  
      def __init__(self, *args, **kwargs):
          super(HyperlinkedModelSerializer, self).__init__(*args, **kwargs)
          if self.opts.view_name is None:
              self.opts.view_name = self._get_default_view_name(self.opts.model)
  
      def _get_default_view_name(self, model):
 
</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
        lookup_field = self.opts.lookup_field
        self.fields['url'] = HyperlinkedIdentityField(lookup_field=lookup_field)
      url = HyperlinkedIdentityField()
  
      def __init__(self, *args, **kwargs):
          super(HyperlinkedModelSerializer, self).__init__(*args, **kwargs)
        lookup_field = self.opts.lookup_field
        self.fields['url'] = HyperlinkedIdentityField(lookup_field=lookup_field)
          if self.opts.view_name is None:
              self.opts.view_name = self._get_default_view_name(self.opts.model)
  
      def _get_default_view_name(self, model):
keep keep keep add keep keep keep keep
 HyperlinkedModelSerializer lookup_field option should apply to HyperlinkedIdentityField 
rest_framework/serializers.py