"""JQuery-Ajax Autocomplete fields for Django Forms."""
__version__ = "2.2.1"
__author__ = "crucialfelix"
__contact__ = "crucialfelix@gmail.com"
__homepage__ = "https://github.com/crucialfelix/django-ajax-selects/"

from ajax_select.registry import registry, register  # noqa
from ajax_select.helpers import make_ajax_form, make_ajax_field  # noqa
from ajax_select.lookup_channel import LookupChannel  # noqa

# django 1.7+ will use the new AppConfig api
# It will load all your lookups.py modules
# and any specified in settings.AJAX_LOOKUP_CHANNELS
# It will do this after all apps are imported.
from django.apps import AppConfig  # noqa

# Django 3.2+ does not need default_app_config set.
# Remove this once django <3.2 support is removed
import django

if django.VERSION < (3, 2):
    default_app_config = "ajax_select.apps.AjaxSelectConfig"
