From 87b88f3c4043067c340910912deca11893a8120c Mon Sep 17 00:00:00 2001 From: jajjibhai008 Date: Tue, 1 Oct 2024 12:10:45 +0500 Subject: [PATCH] feat: make customer agreements fields available in learner license endpoint --- license_manager/apps/api/serializers.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/license_manager/apps/api/serializers.py b/license_manager/apps/api/serializers.py index 029036be..10d7d1a5 100644 --- a/license_manager/apps/api/serializers.py +++ b/license_manager/apps/api/serializers.py @@ -354,6 +354,10 @@ class Meta: 'net_days_until_expiration', 'subscription_for_auto_applied_licenses', 'available_subscription_catalogs', + 'has_custom_license_expiration_messaging', + 'expired_subscription_modal_messaging', + 'hyper_link_text_for_expired_modal', + 'url_for_expired_modal', ] def get_subscription_for_auto_applied_licenses(self, obj): @@ -371,10 +375,6 @@ class Meta: model = CustomerAgreement fields = MinimalCustomerAgreementSerializer.Meta.fields + [ 'subscriptions', - 'has_custom_license_expiration_messaging', - 'expired_subscription_modal_messaging', - 'hyper_link_text_for_expired_modal', - 'url_for_expired_modal', ] @property