  class MockQueryset(object):
      def __init__(self, iterable):
          self.items = iterable
  
      def get(self, **lookup):
          for item in self.items:
              if all([
                  getattr(item, key, None) == value
                  for key, value in lookup.items()
              ]):
 
</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         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         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 from rest_framework import serializers
 </s> add from rest_framework import relations, serializers
    def __getitem__(self, val):
        return self.items[val]

  class MockQueryset(object):
      def __init__(self, iterable):
          self.items = iterable
  
    def __getitem__(self, val):
        return self.items[val]

      def get(self, **lookup):
          for item in self.items:
              if all([
                  getattr(item, key, None) == value
                  for key, value in lookup.items()
              ]):
keep keep keep add keep keep keep keep keep keep
 Add tests for HTML_CUTOFF setting and fix issue where setting it to None would raise an exception. 
tests/utils.py