          super(HyperlinkedIdentityField, self).__init__(*args, **kwargs)
  
      def field_to_native(self, obj, field_name):
          request = self.context.get('request', None)
          view_name = self.view_name or self.parent.opts.view_name
          view_kwargs = {'pk': obj.pk}
          return reverse(view_name, kwargs=view_kwargs, request=request, format=format)
  
  
  ##### Typed Fields #####
 
</s> remove         return reverse(view_name, kwargs=view_kwargs, request=request)
 </s> add         return reverse(view_name, kwargs=view_kwargs, request=request, format=format) </s> remove             return reverse(view_name, kwargs=kwargs, request=request)
 </s> add             return reverse(view_name, kwargs=kwargs, request=request, format=format)
        format = self.format or self.context.get('format', None)
          super(HyperlinkedIdentityField, self).__init__(*args, **kwargs)
  
      def field_to_native(self, obj, field_name):
          request = self.context.get('request', None)
        format = self.format or self.context.get('format', None)
          view_name = self.view_name or self.parent.opts.view_name
          view_kwargs = {'pk': obj.pk}
          return reverse(view_name, kwargs=view_kwargs, request=request, format=format)
  
  
  ##### Typed Fields #####
keep keep keep add keep keep keep keep keep keep
 Fixes for urls with suffixes 
rest_framework/fields.py