예제 #1
0
"""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()
예제 #2
0
 def ready(self):
     from ajax_select.registry import registry
     registry.load_channels()
예제 #3
0
파일: apps.py 프로젝트: roberzguerra/rover
 def ready(self):
     from ajax_select.registry import registry
     registry.load_channels()