Skip to content

Commit

Permalink
remove default_config for Django versions 3.2+
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
mschoettle authored and jheld committed Apr 7, 2022
1 parent 0c98c56 commit 77ac379
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion easyaudit/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
default_app_config = 'easyaudit.apps.EasyAuditConfig'
import django

if django.VERSION < (3, 2):
default_app_config = 'easyaudit.apps.EasyAuditConfig'

0 comments on commit 77ac379

Please sign in to comment.