Skip to content

Commit b140b2d

Browse files
committed
Merge branch 'fix-django-deprecation-default-app-config'
2 parents d9fcfd1 + dbe966a commit b140b2d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

django_lightweight_queue/__init__.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
1+
import django
2+
13
from .task import task, TaskWrapper
24
from .utils import contribute_implied_queue_name
35

4-
default_app_config = 'django_lightweight_queue.apps.DjangoLightweightQueueConfig'
6+
if django.VERSION < (3, 2):
7+
default_app_config = 'django_lightweight_queue.apps.DjangoLightweightQueueConfig'
58

69
__all__ = (
710
'task',

0 commit comments

Comments
 (0)