Skip to content

Commit

Permalink
feat: make customer agreements fields available in learner license en…
Browse files Browse the repository at this point in the history
…dpoint
  • Loading branch information
jajjibhai008 committed Oct 1, 2024
1 parent 6fb4548 commit 87b88f3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions license_manager/apps/api/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand All @@ -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
Expand Down

0 comments on commit 87b88f3

Please sign in to comment.