old_contents: try:
      from django.apps import AppConfig
  except ImportError:
      AppConfig = object
  
  
  class SelectableConfig(AppConfig):
      """App configuration for django-selectable."""
  
      name = 'selectable'
  
      def ready(self):
          self.module.registry.autodiscover()
  
new_contents: try:
      from django.apps import AppConfig
  except ImportError:
      AppConfig = object
  
  
  class SelectableConfig(AppConfig):
      """App configuration for django-selectable."""
  
      name = 'selectable'
  
      def ready(self):
          from . import registry
          registry.autodiscover()
  
subject: Update auto-registration to work while running the tests.