Merge pull request #16301 from edx/pwnage101/verify_student_app_startup

Move verify_student signal registration to ready()
This commit is contained in:
Troy Sankey
2017-10-27 11:10:30 -04:00
committed by GitHub
5 changed files with 24 additions and 6 deletions

View File

@@ -0,0 +1,3 @@
"""
Student Identity Verification App
"""

View File

@@ -0,0 +1,19 @@
"""
Student Identity Verification Application Configuration
"""
from django.apps import AppConfig
class VerifyStudentConfig(AppConfig):
"""
Application Configuration for verify_student.
"""
name = 'lms.djangoapps.verify_student'
verbose_name = 'Student Identity Verification'
def ready(self):
"""
Connect signal handlers.
"""
from . import signals # pylint: disable=unused-variable

View File

@@ -1,4 +0,0 @@
"""
Setup the signals on startup.
"""
import lms.djangoapps.verify_student.signals # pylint: disable=unused-import

View File

@@ -2136,7 +2136,7 @@ INSTALLED_APPS = [
'bulk_enroll',
# Student Identity Verification
'lms.djangoapps.verify_student',
'lms.djangoapps.verify_student.apps.VerifyStudentConfig',
# Dark-launching languages
'openedx.core.djangoapps.dark_lang',

View File

@@ -11,5 +11,5 @@ INSTALLED_APPS = [
'django.contrib.auth',
'django.contrib.contenttypes',
'lms.djangoapps.verify_student',
'lms.djangoapps.verify_student.apps.VerifyStudentConfig',
]