      def __init__(self, *args, **kwargs):
          # TODO: Make this mandatory, and have the HyperlinkedModelSerializer
          # set it on-the-fly
          self.view_name = kwargs.pop('view_name', 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
 
</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 def reverse(viewname, *args, **kwargs):
 </s> add def reverse(viewname, args=None, kwargs=None, request=None, format=None, **extra):
        self.format = kwargs.pop('format', None)
      def __init__(self, *args, **kwargs):
          # TODO: Make this mandatory, and have the HyperlinkedModelSerializer
          # set it on-the-fly
          self.view_name = kwargs.pop('view_name', None)
        self.format = kwargs.pop('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
keep keep keep add keep keep keep keep keep keep
 Fixes for urls with suffixes 
rest_framework/fields.py