Skip to content

Commit

Permalink
Fix country field in API.
Browse files Browse the repository at this point in the history
  • Loading branch information
amanning9 committed May 10, 2023
1 parent 4d95b6b commit d7ed200
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion jasmin_services/api/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
import collections

import django.contrib.auth
import django_countries.serializers
import rest_framework.serializers as rf_serial

from .. import models
Expand Down Expand Up @@ -82,7 +83,7 @@ class Meta:
fields = ["id", "url", "name", "long_name", "position", "services"]


class ServiceSerializer(ServiceListSerializer):
class ServiceSerializer(django_countries.serializers.CountryFieldMixin, ServiceListSerializer):
"""Full details of a service."""

roles = RoleListSerializer(many=True)
Expand Down

0 comments on commit d7ed200

Please sign in to comment.