              'html_cutoff_text',
              self.html_cutoff_text or _(api_settings.HTML_SELECT_CUTOFF_TEXT)
          )
          assert child_relation is not None, '`child_relation` is a required argument.'
          super(ManyRelatedField, self).__init__(*args, **kwargs)
          self.child_relation.bind(field_name='', parent=self)
  
      def get_value(self, dictionary):
          # We override the default field access in order to support
          # lists in HTML forms.
 
</s> remove         super(DictField, self).__init__(*args, **kwargs)
 </s> add         super().__init__(*args, **kwargs) </s> remove         super(ListSerializer, self).__init__(*args, **kwargs)
 </s> add         super().__init__(*args, **kwargs) </s> remove         return super(BaseSerializer, cls).__new__(cls, *args, **kwargs)
 </s> add         return super().__new__(cls, *args, **kwargs) </s> remove         return super(RelatedField, cls).__new__(cls, *args, **kwargs)
 </s> add         return super().__new__(cls, *args, **kwargs) </s> remove         super(HyperlinkedIdentityField, self).__init__(view_name, **kwargs)
 </s> add         super().__init__(view_name, **kwargs)
        super().__init__(*args, **kwargs)
              'html_cutoff_text',
              self.html_cutoff_text or _(api_settings.HTML_SELECT_CUTOFF_TEXT)
          )
          assert child_relation is not None, '`child_relation` is a required argument.'
        super().__init__(*args, **kwargs)
          self.child_relation.bind(field_name='', parent=self)
  
      def get_value(self, dictionary):
          # We override the default field access in order to support
          # lists in HTML forms.
keep keep keep keep replace keep keep keep keep keep
 Dropped Python 2 compatibility. (#6615)

Thanks to Jon Dufresne (@jdufresne) for review.

Co-authored-by: Asif Saif Uddin <auvipy@gmail.com>
Co-authored-by: Rizwan Mansuri <Rizwan@webbyfox.com> 
rest_framework/relations.py