  
  
  class RelatedField(Field):
      def __init__(self, **kwargs):
          self.queryset = kwargs.pop('queryset', self.queryset)
          assert self.queryset is not None or kwargs.get('read_only', None), (
              'Relational field must provide a `queryset` argument, '
 
</s> remove         self.queryset = kwargs.pop('queryset', None)
 </s> add         self.queryset = kwargs.pop('queryset', self.queryset) </s> remove         assert view_name is not None, 'The `view_name` argument is required.'
        self.view_name = view_name
 </s> add         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.'
    queryset = None

  
  
  class RelatedField(Field):
    queryset = None

      def __init__(self, **kwargs):
          self.queryset = kwargs.pop('queryset', self.queryset)
          assert self.queryset is not None or kwargs.get('read_only', None), (
              'Relational field must provide a `queryset` argument, '
keep keep add keep keep keep keep
 Docs for custom hyperlinked fields. 
rest_framework/relations.py