diff --git a/cms/celery.py b/cms/celery.py index 97c4c6f21e..6e1db257b3 100644 --- a/cms/celery.py +++ b/cms/celery.py @@ -22,7 +22,7 @@ APP.conf.task_protocol = 1 # Using a string here means the worker will not have to # pickle the object when using Windows. APP.config_from_object('django.conf:settings') -APP.autodiscover_tasks(lambda: settings.INSTALLED_APPS) +APP.autodiscover_tasks() class Router(AlternateEnvironmentRouter): diff --git a/lms/celery.py b/lms/celery.py index e3315d13a3..a8f0fce6e1 100644 --- a/lms/celery.py +++ b/lms/celery.py @@ -22,7 +22,7 @@ APP.conf.task_protocol = 1 # Using a string here means the worker will not have to # pickle the object when using Windows. APP.config_from_object('django.conf:settings') -APP.autodiscover_tasks(lambda: settings.INSTALLED_APPS) +APP.autodiscover_tasks() class Router(AlternateEnvironmentRouter):