From e05122a437bfc6ee58dd56acb1c1e40d06ec42dc Mon Sep 17 00:00:00 2001 From: Dillon Dumesnil Date: Tue, 25 Jan 2022 09:21:10 -0500 Subject: [PATCH] fix: Include course key when checking enabled for COURSEWARE_MFE_MILESTONES_STREAK_DISCOUNT AA-1191 --- openedx/features/discounts/applicability.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openedx/features/discounts/applicability.py b/openedx/features/discounts/applicability.py index 15afbb2ce9..2dc1469bd8 100644 --- a/openedx/features/discounts/applicability.py +++ b/openedx/features/discounts/applicability.py @@ -92,7 +92,7 @@ def can_show_streak_discount_coupon(user, course): """ # Feature needs to be enabled - if not COURSEWARE_MFE_MILESTONES_STREAK_DISCOUNT.is_enabled(): + if not COURSEWARE_MFE_MILESTONES_STREAK_DISCOUNT.is_enabled(course.id): return False # Course end date needs to be in the future