From 6dd5157feeba136deea7243b95995586dced7dca Mon Sep 17 00:00:00 2001 From: Saad Yousaf Date: Tue, 16 Apr 2024 14:08:18 +0500 Subject: [PATCH] fix: fix cadence value for instant cadence and update version --- openedx/core/djangoapps/notifications/email_notifications.py | 4 ++-- openedx/core/djangoapps/notifications/models.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/openedx/core/djangoapps/notifications/email_notifications.py b/openedx/core/djangoapps/notifications/email_notifications.py index 9c0bd2406b49..07f8f8686e56 100644 --- a/openedx/core/djangoapps/notifications/email_notifications.py +++ b/openedx/core/djangoapps/notifications/email_notifications.py @@ -10,12 +10,12 @@ class EmailCadence: """ DAILY = 'Daily' WEEKLY = 'Weekly' - INSTANTLY = 'Instantly' + IMMEDIATELY = 'Immediately' NEVER = 'Never' EMAIL_CADENCE_CHOICES = [ (DAILY, _('Daily')), (WEEKLY, _('Weekly')), - (INSTANTLY, _('Instantly')), + (IMMEDIATELY, _('Immediately')), (NEVER, _('Never')), ] EMAIL_CADENCE_CHOICES_DICT = dict(EMAIL_CADENCE_CHOICES) diff --git a/openedx/core/djangoapps/notifications/models.py b/openedx/core/djangoapps/notifications/models.py index 1336b3fcdb93..111397a513f9 100644 --- a/openedx/core/djangoapps/notifications/models.py +++ b/openedx/core/djangoapps/notifications/models.py @@ -23,7 +23,7 @@ ADDITIONAL_NOTIFICATION_CHANNEL_SETTINGS = ['email_cadence'] # Update this version when there is a change to any course specific notification type or app. -COURSE_NOTIFICATION_CONFIG_VERSION = 7 +COURSE_NOTIFICATION_CONFIG_VERSION = 8 def get_course_notification_preference_config():