We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6e15725 commit ed4e603Copy full SHA for ed4e603
django_elasticsearch_dsl/__init__.py
@@ -1,3 +1,5 @@
1
+import django
2
+
3
from django.utils.module_loading import autodiscover_modules
4
5
from .documents import Document # noqa
@@ -11,4 +13,5 @@ def autodiscover():
11
13
autodiscover_modules('documents')
12
14
15
-default_app_config = 'django_elasticsearch_dsl.apps.DEDConfig'
16
+if django.VERSION < (3, 2):
17
+ default_app_config = 'django_elasticsearch_dsl.apps.DEDConfig'
0 commit comments