Merge PR #27289 refactor/lms-to-core/get-course-by-id

* Commits:
  refactor: Import a single function, not the whole module
  refactor: Move get_course_by_id helper from LMS to core
This commit is contained in:
stvn
2021-04-14 07:08:19 -07:00
31 changed files with 65 additions and 54 deletions

View File

@@ -8,8 +8,8 @@ This includes any locally defined CourseTools.
from django.urls import reverse
from django.utils.translation import ugettext as _
from lms.djangoapps.courseware.courses import get_course_by_id
from common.djangoapps.student.models import CourseEnrollment
from openedx.core.lib.courses import get_course_by_id
from . import DISABLE_UNIFIED_COURSE_TAB_FLAG
from .course_tools import CourseTool