From 7c5e8f75f6c8dbe05760ddc106acbe47fdb31e01 Mon Sep 17 00:00:00 2001 From: Kevin Luo Date: Wed, 24 Oct 2018 18:02:30 -0700 Subject: [PATCH] Add course start date for email context lost in Ficus merge --- lms/djangoapps/bulk_email/tasks.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lms/djangoapps/bulk_email/tasks.py b/lms/djangoapps/bulk_email/tasks.py index a5d99ca33c9f..c9a8d6fc71ef 100644 --- a/lms/djangoapps/bulk_email/tasks.py +++ b/lms/djangoapps/bulk_email/tasks.py @@ -99,6 +99,7 @@ def _get_course_email_context(course): """ course_id = course.id.to_deprecated_string() course_title = course.display_name + course_start_date = get_default_time_display(course.start) course_end_date = get_default_time_display(course.end) course_root = reverse('course_root', kwargs={'course_id': course_id}) course_url = '{}{}'.format( @@ -112,6 +113,7 @@ def _get_course_email_context(course): 'course_language': course.language, 'course_url': course_url, 'course_image_url': image_url, + 'course_start_date': course_start_date, 'course_end_date': course_end_date, 'account_settings_url': '{}{}'.format(settings.LMS_ROOT_URL, reverse('account_settings')), 'email_settings_url': '{}{}'.format(settings.LMS_ROOT_URL, reverse('dashboard')),