update
This commit is contained in:
@@ -61,7 +61,9 @@ def _listen_for_course_pacing_changed(sender, course_key, course_self_paced, **k
|
||||
the self-generated certificates according to course-pacing.
|
||||
"""
|
||||
toggle_self_generated_certs.delay(unicode(course_key), course_self_paced)
|
||||
|
||||
log.info(u'Certificate Generation Setting Toggled for {course} via pacing change'.format(
|
||||
course=course_key
|
||||
))
|
||||
|
||||
@task()
|
||||
def toggle_self_generated_certs(course_key, course_self_paced):
|
||||
|
||||
@@ -5,16 +5,14 @@ import re
|
||||
import logging
|
||||
|
||||
from django.conf import settings
|
||||
from django.dispatch import Signal
|
||||
|
||||
from xmodule.fields import Date
|
||||
from xmodule.modulestore.exceptions import ItemNotFoundError
|
||||
from openedx.core.djangoapps.self_paced.models import SelfPacedConfiguration
|
||||
from openedx.core.djangoapps.signals.signals import COURSE_PACING_CHANGE
|
||||
from openedx.core.lib.courses import course_image_url
|
||||
from xmodule.modulestore.django import modulestore
|
||||
|
||||
COURSE_PACING_CHANGE = Signal(providing_args=["course_key", "course_self_paced"])
|
||||
|
||||
|
||||
# This list represents the attribute keys for a course's 'about' info.
|
||||
# Note: The 'video' attribute is intentionally excluded as it must be
|
||||
|
||||
@@ -22,3 +22,5 @@ COURSE_GRADE_NOW_PASSED = Signal(
|
||||
|
||||
# Signal that indicates that a user has become verified
|
||||
LEARNER_NOW_VERIFIED = Signal(providing_args=['user'])
|
||||
|
||||
COURSE_PACING_CHANGE = Signal(providing_args=["course_key", "course_self_paced"])
|
||||
|
||||
Reference in New Issue
Block a user