add cert available date to CMS settings
This commit is contained in:
@@ -1,19 +0,0 @@
|
||||
"""
|
||||
This module contains various configuration settings via
|
||||
waffle switches for the Certificates app.
|
||||
"""
|
||||
from openedx.core.djangoapps.waffle_utils import WaffleSwitchNamespace
|
||||
|
||||
# Namespace
|
||||
WAFFLE_NAMESPACE = u'certificates'
|
||||
|
||||
# Switches
|
||||
SELF_PACED_ONLY = u'self_paced_only'
|
||||
INSTRUCTOR_PACED_ONLY = u'instructor_paced_only'
|
||||
|
||||
|
||||
def waffle():
|
||||
"""
|
||||
Returns the namespaced, cached, audited Waffle class for Certificates.
|
||||
"""
|
||||
return WaffleSwitchNamespace(name=WAFFLE_NAMESPACE, log_prefix=u'Certificates: ')
|
||||
@@ -6,7 +6,6 @@ import logging
|
||||
from django.db.models.signals import post_save
|
||||
from django.dispatch import receiver
|
||||
|
||||
from .config import waffle
|
||||
from certificates.models import \
|
||||
CertificateGenerationCourseSetting, \
|
||||
CertificateWhitelist, \
|
||||
@@ -14,6 +13,7 @@ from certificates.models import \
|
||||
from certificates.tasks import generate_certificate
|
||||
from courseware import courses
|
||||
from lms.djangoapps.grades.new.course_grade_factory import CourseGradeFactory
|
||||
from openedx.core.djangoapps.certificates.config import waffle
|
||||
from openedx.core.djangoapps.signals.signals import COURSE_GRADE_NOW_PASSED, LEARNER_NOW_VERIFIED
|
||||
from student.models import CourseEnrollment
|
||||
|
||||
|
||||
@@ -5,7 +5,6 @@ and disabling for instructor-paced courses.
|
||||
import mock
|
||||
|
||||
from certificates import api as certs_api
|
||||
from certificates.config import waffle
|
||||
from certificates.models import \
|
||||
CertificateGenerationConfiguration, \
|
||||
CertificateWhitelist, \
|
||||
@@ -15,6 +14,7 @@ from openedx.core.djangoapps.signals.handlers import _listen_for_course_pacing_c
|
||||
from lms.djangoapps.grades.new.course_grade_factory import CourseGradeFactory
|
||||
from lms.djangoapps.grades.tests.utils import mock_passing_grade
|
||||
from lms.djangoapps.verify_student.models import SoftwareSecurePhotoVerification
|
||||
from openedx.core.djangoapps.certificates.config import waffle
|
||||
from openedx.core.djangoapps.self_paced.models import SelfPacedConfiguration
|
||||
from student.tests.factories import CourseEnrollmentFactory, UserFactory
|
||||
from xmodule.modulestore.tests.django_utils import ModuleStoreTestCase
|
||||
|
||||
Reference in New Issue
Block a user