Skip to content

Commit

Permalink
Conditionally use deprecated default_app_config
Browse files Browse the repository at this point in the history
`default_app_config` is being removed in Django 4.1 and a new warning has shown up since django 3.2

https://docs.djangoproject.com/en/dev/internals/deprecation/#deprecation-removed-in-4-1
  • Loading branch information
dustinchilson committed Feb 5, 2022
1 parent 03fa9f7 commit 9e3b97e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion django_guid/__init__.py
@@ -1,6 +1,10 @@
import django

from django_guid.api import clear_guid, get_guid, set_guid # noqa F401

__version__ = '3.2.1'
default_app_config = 'django_guid.apps.DjangoGuidConfig'

if django.VERSION < (3, 2):
default_app_config = 'django_guid.apps.DjangoGuidConfig'

__all__ = ['clear_guid', 'get_guid', 'set_guid']

0 comments on commit 9e3b97e

Please sign in to comment.