diff --git a/docs/releasenotes.md b/docs/releasenotes.md index 291d96d..0934c44 100644 --- a/docs/releasenotes.md +++ b/docs/releasenotes.md @@ -1,5 +1,11 @@ # Release Notes +## Pending release + +### What's new? + +- Prevent `RemovedInDjango41Warning` about `default_app_config` for Django 3.2+. + ## 5.0.7 ### What's new? diff --git a/flags/__init__.py b/flags/__init__.py index 8bacc71..ac01bc1 100644 --- a/flags/__init__.py +++ b/flags/__init__.py @@ -1 +1,5 @@ -default_app_config = "flags.apps.DjangoFlagsConfig" +import django + + +if django.VERSION < (3, 2): + default_app_config = "flags.apps.DjangoFlagsConfig"