Added Entitlement enroll and unenroll logic to the Enrollment API

[LEARNER-3136]

This commit containts the logic and API endpoint for a user to Enroll,
Unenroll, and switch-session on a Course Entitlement.
This commit is contained in:
Albert St. Aubin
2017-11-16 12:41:06 -05:00
parent fef38170f3
commit 0ea3753d94
6 changed files with 396 additions and 10 deletions

View File

@@ -235,7 +235,6 @@ def get_course_runs_for_course(course_uuid):
cache_key=cache_key if catalog_integration.is_cache_enabled else None,
long_term_cache=True
)
return data.get('course_runs', [])
else:
return []