From e7dbc4883c99bc1ff9c279c00ac6e47679bfc761 Mon Sep 17 00:00:00 2001 From: Ahtisham Shahid Date: Thu, 8 Aug 2024 19:10:47 +0500 Subject: [PATCH] fix: resolved content issue in renamed notification (#35252) --- openedx/core/djangoapps/notifications/base_notification.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/openedx/core/djangoapps/notifications/base_notification.py b/openedx/core/djangoapps/notifications/base_notification.py index 2813002fdb77..fb558dfec058 100644 --- a/openedx/core/djangoapps/notifications/base_notification.py +++ b/openedx/core/djangoapps/notifications/base_notification.py @@ -465,6 +465,8 @@ def get_notification_content(notification_type, context): 'strong': 'strong', 'p': 'p', } + if notification_type == 'course_update': + notification_type = 'course_updates' notification_type = NotificationTypeManager().notification_types.get(notification_type, None) if notification_type: notification_type_content_template = notification_type.get('content_template', None)