      html_cutoff_text = None
  
      def __init__(self, **kwargs):
          self.queryset = kwargs.pop('queryset', self.queryset)
          self.html_cutoff = kwargs.pop(
              'html_cutoff',
              self.html_cutoff or int(api_settings.HTML_SELECT_CUTOFF)
          )
          self.html_cutoff_text = kwargs.pop(
              'html_cutoff_text',
              self.html_cutoff_text or _(api_settings.HTML_SELECT_CUTOFF_TEXT)
          )
          if not method_overridden('get_queryset', RelatedField, self):
 
</s> remove         self.html_cutoff = kwargs.pop(
            'html_cutoff',
            self.html_cutoff or int(api_settings.HTML_SELECT_CUTOFF)
        )
 </s> add         cutoff_from_settings = api_settings.HTML_SELECT_CUTOFF
        if cutoff_from_settings is not None:
            cutoff_from_settings = int(cutoff_from_settings)
        self.html_cutoff = kwargs.pop('html_cutoff', cutoff_from_settings)
 </s> remove     'label', 'help_text', 'style', 'error_messages', 'allow_empty'
 </s> add     'label', 'help_text', 'style', 'error_messages', 'allow_empty',
    'html_cutoff', 'html_cutoff_text' </s> remove from rest_framework import serializers
 </s> add from rest_framework import relations, serializers
        cutoff_from_settings = api_settings.HTML_SELECT_CUTOFF
        if cutoff_from_settings is not None:
            cutoff_from_settings = int(cutoff_from_settings)
        self.html_cutoff = kwargs.pop('html_cutoff', cutoff_from_settings)

      html_cutoff_text = None
  
      def __init__(self, **kwargs):
          self.queryset = kwargs.pop('queryset', self.queryset)
        cutoff_from_settings = api_settings.HTML_SELECT_CUTOFF
        if cutoff_from_settings is not None:
            cutoff_from_settings = int(cutoff_from_settings)
        self.html_cutoff = kwargs.pop('html_cutoff', cutoff_from_settings)

        cutoff_from_settings = api_settings.HTML_SELECT_CUTOFF
        if cutoff_from_settings is not None:
            cutoff_from_settings = int(cutoff_from_settings)
        self.html_cutoff = kwargs.pop('html_cutoff', cutoff_from_settings)

        cutoff_from_settings = api_settings.HTML_SELECT_CUTOFF
        if cutoff_from_settings is not None:
            cutoff_from_settings = int(cutoff_from_settings)
        self.html_cutoff = kwargs.pop('html_cutoff', cutoff_from_settings)

        cutoff_from_settings = api_settings.HTML_SELECT_CUTOFF
        if cutoff_from_settings is not None:
            cutoff_from_settings = int(cutoff_from_settings)
        self.html_cutoff = kwargs.pop('html_cutoff', cutoff_from_settings)

          self.html_cutoff_text = kwargs.pop(
              'html_cutoff_text',
              self.html_cutoff_text or _(api_settings.HTML_SELECT_CUTOFF_TEXT)
          )
          if not method_overridden('get_queryset', RelatedField, self):
keep keep keep keep replace replace replace replace keep keep keep keep keep
 Add tests for HTML_CUTOFF setting and fix issue where setting it to None would raise an exception. 
rest_framework/relations.py