Skip to content
Snippets Groups Projects
Unverified Commit 375173f1 authored by Feanil Patel's avatar Feanil Patel Committed by GitHub
Browse files

Use the default autodiscovery instead of passing in the installed apps. (#25467)

Passing in the INSTALLED_APPS lambda seems to result in some tasks for certain apps
like instructor_task and bulk_email to not get discovered properly.
parent eef62eb2
No related branches found
No related tags found
No related merge requests found
......@@ -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):
......
......@@ -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):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment