      def __init__(self, *args, **kwargs):
          # TODO: Make view_name mandatory, and have the
          # HyperlinkedModelSerializer set it on-the-fly
          self.view_name = kwargs.pop('view_name', None)
          self.format = kwargs.pop('format', None)
  
          self.slug_field = kwargs.pop('slug_field', self.slug_field)
          default_slug_kwarg = self.slug_url_kwarg or self.slug_field
          self.pk_url_kwarg = kwargs.pop('pk_url_kwarg', self.pk_url_kwarg)
          self.slug_url_kwarg = kwargs.pop('slug_url_kwarg', default_slug_kwarg)
 
</s> remove         format = self.format or self.context.get('format', None)
 </s> add         format = self.context.get('format', None)
        # Optionally the format of the target hyperlink may be specified
      def __init__(self, *args, **kwargs):
          # TODO: Make view_name mandatory, and have the
          # HyperlinkedModelSerializer set it on-the-fly
          self.view_name = kwargs.pop('view_name', None)
        # Optionally the format of the target hyperlink may be specified
          self.format = kwargs.pop('format', None)
  
          self.slug_field = kwargs.pop('slug_field', self.slug_field)
          default_slug_kwarg = self.slug_url_kwarg or self.slug_field
          self.pk_url_kwarg = kwargs.pop('pk_url_kwarg', self.pk_url_kwarg)
          self.slug_url_kwarg = kwargs.pop('slug_url_kwarg', default_slug_kwarg)
keep keep keep add keep keep keep keep keep keep
 Tweak behavior of hyperlinked fields that include an explicit format suffix. 
rest_framework/relations.py