def update_exam_authorization_order(sender, instance, **kwargs): # pylint: disable=unused-argument """ Signal handler to trigger an exam profile and authorization for Order fulfillment. """ if not Order.is_fulfilled(instance.status): return paid_edx_course_keys = instance.line_set.values_list('course_key', flat=True) for course_run in CourseRun.objects.filter( edx_course_key__in=paid_edx_course_keys ).select_related('course__program'): authorize_user_for_schedulable_exam_runs(instance.user, course_run)
def update_exam_authorization_order(sender, instance, **kwargs): # pylint: disable=unused-argument """ Signal handler to trigger an exam profile and authorization for Order fulfillment. """ if not Order.is_fulfilled(instance.status): return paid_edx_course_keys = instance.line_set.values_list('course_key', flat=True) for course_run in CourseRun.objects.filter( edx_course_key__in=paid_edx_course_keys).select_related( 'course__program'): authorize_user_for_schedulable_exam_runs(instance.user, course_run)
def update_exam_authorization_final_grade(sender, instance, **kwargs): # pylint: disable=unused-argument """ Signal handler to trigger an exam profile and authorization for FinalGrade creation. """ authorize_user_for_schedulable_exam_runs(instance.user, instance.course_run)
def update_exam_authorization_final_grade(sender, instance, **kwargs): # pylint: disable=unused-argument """ Signal handler to trigger an exam profile and authorization for FinalGrade creation. """ authorize_user_for_schedulable_exam_runs(instance.user, instance.course_run)