You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
is there a way to return country names instead of codes when using CountryFieldMixin?
When using a model field with multiple=True, how to get country names instead of codes?
Explicitly declaring the serializer field with name_only=True returns an empty string, and django_countries.serializer_fields.CountryField does not recognize DRF’s many=True option.
The text was updated successfully, but these errors were encountered:
CountryFieldMixin
?multiple=True
, how to get country names instead of codes?Explicitly declaring the serializer field with
name_only=True
returns an empty string, anddjango_countries.serializer_fields.CountryField
does not recognize DRF’smany=True
option.The text was updated successfully, but these errors were encountered: