From b00cd53eaf8f9dcf1eabd8b31ef7d6110d2f9999 Mon Sep 17 00:00:00 2001 From: Bryann Valderrama Date: Tue, 14 Oct 2025 19:18:10 -0500 Subject: [PATCH] feat: add user certificate to context in HTML view --- lms/djangoapps/certificates/views/webview.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lms/djangoapps/certificates/views/webview.py b/lms/djangoapps/certificates/views/webview.py index 0afa7a687d..bee1638342 100644 --- a/lms/djangoapps/certificates/views/webview.py +++ b/lms/djangoapps/certificates/views/webview.py @@ -560,6 +560,9 @@ def render_html_view(request, course_id, certificate=None): # pylint: disable=t context['certificate_data'] = active_configuration + # Append user certificate to context + context["user_certificate"] = user_certificate + # Append/Override the existing view context values with any mode-specific ConfigurationModel values context.update(configuration.get(user_certificate.mode, {}))