Skip to content

Commit dbe966a

Browse files
committed
Don't export default_app_config above Django 3.2
It's deprecated from 3.2 onwards and planned for removal in 4.1.
1 parent 4be9fb0 commit dbe966a

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)