Move verify_student signal registration to ready()

This commit is contained in:
Troy Sankey
2017-10-20 16:32:15 -04:00
parent 22f9530dec
commit 3be0fa81b8
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

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

View File

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