"""JQuery-Ajax Autocomplete fields for Django Forms.""" __version__ = "1.3.6" __author__ = "crucialfelix" __contact__ = "*****@*****.**" __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()
def ready(self): from ajax_select.registry import registry registry.load_channels()