From 05c66aabf2b5f346d4432439d2b5d49bc4d68e6e Mon Sep 17 00:00:00 2001 From: Matthias Schoettle Date: Mon, 4 Apr 2022 14:31:47 -0400 Subject: [PATCH] remove default_config for Django versions 3.2+ Addresses deprecation warning: RemovedInDjango41Warning: 'easyaudit' defines default_app_config = 'easyaudit.apps.EasyAuditConfig'. Django now detects this configuration automatically. You can remove default_app_config. Signed-off-by: Matthias Schoettle --- easyaudit/__init__.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/easyaudit/__init__.py b/easyaudit/__init__.py index e8fd4de4..d3de5437 100644 --- a/easyaudit/__init__.py +++ b/easyaudit/__init__.py @@ -1 +1,4 @@ -default_app_config = 'easyaudit.apps.EasyAuditConfig' \ No newline at end of file +import django + +if django.VERSION < (3, 2): + default_app_config = 'easyaudit.apps.EasyAuditConfig'