diff --git a/common/djangoapps/student/tasks.py b/common/djangoapps/student/tasks.py index 8f9746b1dd..c13c5bf96b 100644 --- a/common/djangoapps/student/tasks.py +++ b/common/djangoapps/student/tasks.py @@ -115,6 +115,7 @@ def send_course_enrollment_email( "short_description": course_run.get("short_description"), "pacing_type": course_run.get("pacing_type"), "partner_image_url": owners[0].get("logo_image_url") if owners else "", + "org_name": owners[0].get("name") if owners else "", } ) except Exception as err: # pylint: disable=broad-except diff --git a/common/djangoapps/student/tests/test_tasks.py b/common/djangoapps/student/tests/test_tasks.py index 23b4cc19e6..d5fc3d3db0 100644 --- a/common/djangoapps/student/tests/test_tasks.py +++ b/common/djangoapps/student/tests/test_tasks.py @@ -85,6 +85,7 @@ class TestCourseEnrollmentEmailTask(ModuleStoreTestCase): return [ { "logo_image_url": "https://prod/organization/logos/2cc39992c67a.png", + "name": "edX University", } ] @@ -164,6 +165,7 @@ class TestCourseEnrollmentEmailTask(ModuleStoreTestCase): "short_description": course_run["short_description"], "pacing_type": course_run["pacing_type"], "partner_image_url": self._get_course_owners()[0]["logo_image_url"], + "org_name": self._get_course_owners()[0]["name"], } )