Skip to content
Snippets Groups Projects
Commit d8534442 authored by Calen Pennington's avatar Calen Pennington
Browse files

Schedules is a core part of the LMS, install it by default, rather than...

Schedules is a core part of the LMS, install it by default, rather than through the plugins mechanism
parent ff1d9fe3
No related merge requests found
......@@ -1428,6 +1428,9 @@ INSTALLED_APPS = [
# signal handlers to capture course dates into edx-when
'openedx.core.djangoapps.course_date_signals',
# Management of per-user schedules
'openedx.core.djangoapps.schedules',
]
......
......@@ -2477,6 +2477,9 @@ INSTALLED_APPS = [
# Management of external user ids
'openedx.core.djangoapps.external_user_ids',
# Management of per-user schedules
'openedx.core.djangoapps.schedules',
]
######################### CSRF #########################################
......
......@@ -10,23 +10,6 @@ class SchedulesConfig(AppConfig):
name = 'openedx.core.djangoapps.schedules'
verbose_name = _('Schedules')
plugin_app = {
PluginSignals.CONFIG: {
ProjectType.LMS: {
PluginSignals.RECEIVERS: [{
PluginSignals.RECEIVER_FUNC_NAME: u'update_schedules_on_course_start_changed',
PluginSignals.SIGNAL_PATH: u'openedx.core.djangoapps.content.course_overviews.signals.COURSE_START_DATE_CHANGED', # pylint: disable=line-too-long
}]
},
ProjectType.CMS: {
PluginSignals.RECEIVERS: [{
PluginSignals.RECEIVER_FUNC_NAME: u'update_schedules_on_course_start_changed',
PluginSignals.SIGNAL_PATH: u'openedx.core.djangoapps.content.course_overviews.signals.COURSE_START_DATE_CHANGED', # pylint: disable=line-too-long
}]
},
},
}
def ready(self):
# noinspection PyUnresolvedReferences
from . import signals, tasks # pylint: disable=unused-variable
......@@ -17,6 +17,7 @@ from lms.djangoapps.courseware.models import (
DynamicUpgradeDeadlineConfiguration,
OrgDynamicUpgradeDeadlineConfiguration
)
from openedx.core.djangoapps.content.course_overviews.signals import COURSE_START_DATE_CHANGED
from openedx.core.djangoapps.schedules.content_highlights import course_has_highlights
from openedx.core.djangoapps.schedules.models import ScheduleExperience
from openedx.core.djangoapps.theming.helpers import get_current_site
......@@ -58,6 +59,7 @@ def create_schedule(sender, **kwargs): # pylint: disable=unused-argument
))
@receiver(COURSE_START_DATE_CHANGED)
def update_schedules_on_course_start_changed(sender, updated_course_overview, previous_start_date, **kwargs): # pylint: disable=unused-argument
"""
Updates all course schedules start and upgrade_deadline dates based off of
......
......@@ -76,7 +76,6 @@ setup(
"discussion = lms.djangoapps.discussion.apps:DiscussionConfig",
"grades = lms.djangoapps.grades.apps:GradesConfig",
"plugins = openedx.core.djangoapps.plugins.apps:PluginsConfig",
"schedules = openedx.core.djangoapps.schedules.apps:SchedulesConfig",
"theming = openedx.core.djangoapps.theming.apps:ThemingConfig",
"bookmarks = openedx.core.djangoapps.bookmarks.apps:BookmarksConfig",
"zendesk_proxy = openedx.core.djangoapps.zendesk_proxy.apps:ZendeskProxyConfig",
......
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