fix: downgrading enterprise version to 3.60.21

This commit is contained in:
Alex Sheehan
2023-02-16 19:25:25 +00:00
parent 5436136609
commit de28d61215
6 changed files with 9 additions and 6 deletions

View File

@@ -836,7 +836,7 @@ def get_enterprise_course_enrollments(user):
"""
return EnterpriseCourseEnrollment.objects.select_related(
'licensedenterprisecourseenrollment_enrollment_fulfillment',
'licensed_with',
'enterprise_customer_user'
).prefetch_related(
'enterprise_customer_user__enterprise_customer'

View File

@@ -1,7 +1,10 @@
"""
APIs providing enterprise context for events.
"""
from enterprise.models import EnterpriseCourseEnrollment
try:
from enterprise.models import EnterpriseCourseEnrollment
except ImportError: # pragma: no cover
pass
def get_enterprise_event_context(user_id, course_id):