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.
This commit is contained in:
Feanil Patel
2020-10-28 15:13:24 -04:00
committed by GitHub
parent eef62eb207
commit 375173f1df
2 changed files with 2 additions and 2 deletions

View File

@@ -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):

View File

@@ -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):