1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
|
"""JQuery-Ajax Autocomplete fields for Django Forms."""
__version__ = "1.4.3"
__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
try:
# 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
default_app_config = 'ajax_select.apps.AjaxSelectConfig'
except ImportError:
# Previous django versions should load now
# using settings.AJAX_LOOKUP_CHANNELS
registry.load_channels()
|