Skip to content

Commit

Permalink
Merge pull request #834 from kluo/add-course-start-date
Browse files Browse the repository at this point in the history
Add course start date for email context lost in Ficus merge
  • Loading branch information
kluo authored Oct 25, 2018
2 parents 0218a63 + 7c5e8f7 commit e01b6ac
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 e01b6ac

Please sign in to comment.