Skip to content

Commit

Permalink
fix: mock model object when outside of lms
Browse files Browse the repository at this point in the history
  • Loading branch information
pkulkark committed Mar 4, 2024
1 parent 2725429 commit 93026bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion learning_paths/compat.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@
try:
from common.djangoapps.student.models import CourseEnrollment
except ImportError:
CourseEnrollment = None
CourseEnrollment = Mock()

__all__ = ["get_course_keys_with_outlines", "CourseEnrollment"]

0 comments on commit 93026bc

Please sign in to comment.