Skip to content

Commit

Permalink
feat: add run_extension_point to use pearson_core functionality for s…
Browse files Browse the repository at this point in the history
…ort courses_requirements_not_met
  • Loading branch information
anfbermudezme committed Nov 11, 2021
1 parent afaef49 commit 7fbd18d
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion common/djangoapps/student/views/dashboard.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@
from openedx.core.djangoapps.waffle_utils import WaffleFlag, WaffleFlagNamespace
from openedx.core.djangolib.markup import HTML, Text
from openedx.features.enterprise_support.api import get_dashboard_consent_notification
from openedx.core.djangoapps.plugins.plugins_hooks import run_extension_point
from shoppingcart.models import CourseRegistrationCode, DonationConfiguration
from student.api import COURSE_DASHBOARD_PLUGIN_VIEW_NAME
from student.helpers import cert_info, check_verify_status_by_course, get_resume_urls_for_enrollments
Expand Down Expand Up @@ -803,7 +804,11 @@ def student_dashboard(request):
if enrollment.course_overview.pre_requisite_courses
)
courses_requirements_not_met = get_pre_requisite_courses_not_completed(user, courses_having_prerequisites)

run_extension_point(
'PEARSON_CORE_SORT_ENROLLED_PREREQUISITES',
user = user,
courses_requirements_not_met = courses_requirements_not_met,
)
if 'notlive' in request.GET:
redirect_message = _("The course you are looking for does not start until {date}.").format(
date=request.GET['notlive']
Expand Down

0 comments on commit 7fbd18d

Please sign in to comment.