Skip to content

Commit 9298add

Browse files
nikolaikauvipy
authored andcommitted
Fix default_app_config deprecation
Django 3.2 automatically detects AppConfig and therefore this setting is no longer required. https://docs.djangoproject.com/en/dev/releases/3.2/#automatic-appconfig-discovery
1 parent 62b8aa6 commit 9298add

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

django_celery_beat/__init__.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66

77
from collections import namedtuple
88

9+
import django
10+
911
__version__ = '2.2.0'
1012
__author__ = 'Asif Saif Uddin, Ask Solem'
1113
@@ -29,4 +31,5 @@
2931

3032
__all__ = []
3133

32-
default_app_config = 'django_celery_beat.apps.BeatConfig'
34+
if django.VERSION < (3, 2):
35+
default_app_config = 'django_celery_beat.apps.BeatConfig'

0 commit comments

Comments
 (0)