          'incorrect_type': _('Incorrect type. Expected URL string, received {data_type}.'),
      }
  
      def __init__(self, view_name=None, **kwargs):
          assert view_name is not None, 'The `view_name` argument is required.'
          self.view_name = view_name
          self.lookup_field = kwargs.pop('lookup_field', self.lookup_field)
          self.lookup_url_kwarg = kwargs.pop('lookup_url_kwarg', self.lookup_field)
          self.format = kwargs.pop('format', None)
  
          # We include this simply for dependency injection in tests.
 
</s> remove         self.queryset = kwargs.pop('queryset', None)
 </s> add         self.queryset = kwargs.pop('queryset', self.queryset)
        if view_name is not None:
            view_name = self.view_name = view_name
        assert self.view_name is not None, 'The `view_name` argument is required.'
          'incorrect_type': _('Incorrect type. Expected URL string, received {data_type}.'),
      }
  
      def __init__(self, view_name=None, **kwargs):
        if view_name is not None:
            view_name = self.view_name = view_name
        assert self.view_name is not None, 'The `view_name` argument is required.'
        if view_name is not None:
            view_name = self.view_name = view_name
        assert self.view_name is not None, 'The `view_name` argument is required.'
          self.lookup_field = kwargs.pop('lookup_field', self.lookup_field)
          self.lookup_url_kwarg = kwargs.pop('lookup_url_kwarg', self.lookup_field)
          self.format = kwargs.pop('format', None)
  
          # We include this simply for dependency injection in tests.
keep keep keep keep replace replace keep keep keep keep keep
 Docs for custom hyperlinked fields. 
rest_framework/relations.py