* First take at forcing a subsection's grade to update when a signal is sent that a problem's score has changed * Refactor signal handler connection. * Expand bokchoy tests to cover progress page * Add some grading unit tests TNL-5394 TNL-5364
23 lines
527 B
Python
23 lines
527 B
Python
"""
|
|
Grades Application Configuration
|
|
|
|
Signal handlers are connected here.
|
|
"""
|
|
|
|
from django.apps import AppConfig
|
|
|
|
|
|
class GradesConfig(AppConfig):
|
|
"""
|
|
Application Configuration for Grades.
|
|
"""
|
|
name = u'lms.djangoapps.grades'
|
|
|
|
def ready(self):
|
|
"""
|
|
Connect handlers to recalculate grades.
|
|
"""
|
|
# Can't import models at module level in AppConfigs, and models get
|
|
# included from the signal handlers
|
|
from .signals import handlers # pylint: disable=unused-variable
|