Skip to content

Commit

Permalink
Add course start date for email context lost in Ficus merge
Browse files Browse the repository at this point in the history
  • Loading branch information
kluo authored and stvstnfrd committed Oct 26, 2018
1 parent dce4bf9 commit bdc054a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lms/djangoapps/bulk_email/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand All @@ -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')),
Expand Down

0 comments on commit bdc054a

Please sign in to comment.