Skip to content

Commit

Permalink
feat: add run_extension_point to use pearson_core functionality for p…
Browse files Browse the repository at this point in the history
…rerequisites
  • Loading branch information
anfbermudezme committed Nov 11, 2021
1 parent 5f84679 commit afaef49
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions cms/djangoapps/contentstore/views/course.py
Original file line number Diff line number Diff line change
Expand Up @@ -1161,6 +1161,11 @@ def settings_handler(request, course_key_string):
if not all(is_valid_course_key(course_key) for course_key in prerequisite_course_keys):
return JsonResponseBadRequest({"error": _("Invalid prerequisite course key")})
set_prerequisite_courses(course_key, prerequisite_course_keys)
run_extension_point(
'PEARSON_CORE_MILESTONE_PREREQUISITES_MODULE',
course_key = course_key,
prerequisite_course_keys = prerequisite_course_keys,
)
else:
# None is chosen, so remove the course prerequisites
course_milestones = milestones_api.get_course_milestones(course_key=course_key, relationship="requires")
Expand Down

0 comments on commit afaef49

Please sign in to comment.