Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Add CountryFieldMixin to the EnterpriseCustomer serializer #2172

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ Unreleased
----------
* nothing unreleased

[4.21.6]
---------
* fix: Add CountryFieldMixin to the EnterpriseCustomer serializer

[4.21.5]
---------
* feat: allow PAs to access all enterprise customers
Expand Down
2 changes: 1 addition & 1 deletion enterprise/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
Your project description goes here.
"""

__version__ = "4.21.5"
__version__ = "4.21.6"
3 changes: 2 additions & 1 deletion enterprise/api/v1/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
from collections.abc import Iterable

import pytz
from django_countries.serializers import CountryFieldMixin
from edx_rest_api_client.exceptions import HttpClientError
from oauth2_provider.generators import generate_client_id, generate_client_secret
from rest_framework import serializers
Expand Down Expand Up @@ -204,7 +205,7 @@ def to_internal_value(self, data):
raise serializers.ValidationError({"domain": "No Site with the provided domain was found."}) from exc


class EnterpriseCustomerSerializer(serializers.ModelSerializer):
class EnterpriseCustomerSerializer(CountryFieldMixin, serializers.ModelSerializer):
"""
Serializer for EnterpriseCustomer model.
"""
Expand Down
Loading