Remove deprecation warning in Django > 3.2.

This commit is contained in:
Emil Stenström 2022-07-14 09:45:42 +02:00
parent 98ea9405f9
commit 77e4cdc543

View file

@ -1,8 +1,10 @@
from importlib import import_module
import django
from django.utils.module_loading import autodiscover_modules
default_app_config = "django_components.apps.ComponentsConfig"
if django.VERSION < (3, 2):
default_app_config = "django_components.apps.ComponentsConfig"
def autodiscover():