  import uuid
  
  import pytest
  from django.conf.urls import url
  from django.core.exceptions import ImproperlyConfigured
  from django.test import override_settings
  from django.utils.datastructures import MultiValueDict
  
 
</s> remove from rest_framework import serializers
 </s> add from rest_framework import relations, serializers </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     'label', 'help_text', 'style', 'error_messages', 'allow_empty'
 </s> add     'label', 'help_text', 'style', 'error_messages', 'allow_empty',
    'html_cutoff', 'html_cutoff_text'
from _pytest.monkeypatch import MonkeyPatch
  import uuid
  
  import pytest
from _pytest.monkeypatch import MonkeyPatch
  from django.conf.urls import url
  from django.core.exceptions import ImproperlyConfigured
  from django.test import override_settings
  from django.utils.datastructures import MultiValueDict
  
keep keep add keep keep keep keep keep
 Add tests for HTML_CUTOFF setting and fix issue where setting it to None would raise an exception. 
tests/test_relations.py