diff --git a/openedx/core/djangoapps/notifications/events.py b/openedx/core/djangoapps/notifications/events.py index 0519e1b723..64fc72b531 100644 --- a/openedx/core/djangoapps/notifications/events.py +++ b/openedx/core/djangoapps/notifications/events.py @@ -69,7 +69,7 @@ def notification_generated_event(user_ids, app_name, notification_type, course_k context = contexts.course_context_from_course_id(course_key) event_data = { 'recipients_id': user_ids, - 'course_id': course_key, + 'course_id': str(course_key), 'notification_type': notification_type, 'notification_app': app_name, }