Fix deprecation warning of how default app config is specified
from functools import wraps
+import django
+
from iommi._db_compat import (
register_factory,
setup_db_compat,
@@ -130,4 +132,5 @@ def inner(request, *args, **kwargs):
'iommi_render',
]
+if django.VERSION[:2] < (3, 2):
default_app_config = 'iommi.apps.IommiConfig'
