Skip to content

Commit dec6208

Browse files
committed
Update version, remove old backward compatible app config loading code for < Django 3.2
1 parent 91f96b3 commit dec6208

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

ajax_select/__init__.py

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
"""JQuery-Ajax Autocomplete fields for Django Forms."""
2-
__version__ = "1.7.0"
2+
__version__ = "2.2.0"
33
__author__ = "crucialfelix"
44
__contact__ = "[email protected]"
55
__homepage__ = "https://github.com/crucialfelix/django-ajax-selects/"
@@ -8,14 +8,9 @@
88
from ajax_select.helpers import make_ajax_form, make_ajax_field # noqa
99
from ajax_select.lookup_channel import LookupChannel # noqa
1010

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

17-
# Django 3.2+ does not need default_app_config set.
18-
# Remove this once django <3.2 support is removed
19-
import django
20-
if django.VERSION < (3, 2):
21-
default_app_config = 'ajax_select.apps.AjaxSelectConfig'
16+
default_app_config = "ajax_select.apps.AjaxSelectConfig"

0 commit comments

Comments
 (0)