Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Jf/tecnicolisboa custom automatic email #826

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions lms/djangoapps/instructor/enrollment.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@
from openedx.core.djangoapps.site_configuration import helpers as configuration_helpers
from openedx.core.djangoapps.user_api.models import UserPreference
from openedx.core.djangolib.markup import Text
from openedx.core.lib.courses import course_image_url
from xmodule.modulestore.django import modulestore # lint-amnesty, pylint: disable=wrong-import-order
from xmodule.modulestore.exceptions import ItemNotFoundError # lint-amnesty, pylint: disable=wrong-import-order

Expand Down Expand Up @@ -443,6 +444,7 @@ def get_email_params(course, auto_enroll, secure=True, course_key=None, display_
settings.CONTACT_MAILING_ADDRESS
)
platform_name = configuration_helpers.get_value('PLATFORM_NAME', settings.PLATFORM_NAME)
image_url = f'{settings.LMS_ROOT_URL}{course_image_url(course)}'

# Composition of email
email_params = {
Expand All @@ -453,6 +455,7 @@ def get_email_params(course, auto_enroll, secure=True, course_key=None, display_
'auto_enroll': auto_enroll,
'course_url': course_url,
'course_about_url': course_about_url,
'course_image_url': image_url,
'is_shib_course': is_shib_course,
'contact_mailing_address': contact_mailing_address,
'platform_name': platform_name,
Expand Down
Loading