django-countries icon indicating copy to clipboard operation
django-countries copied to clipboard

CountryFieldMixin: support name_only

Open akhayyat opened this issue 2 years ago • 1 comments

  1. is there a way to return country names instead of codes when using CountryFieldMixin?
  2. 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.

akhayyat avatar Jan 24 '23 12:01 akhayyat

Same issue on my side. Any help please ?

MehdiDRISSIB avatar Dec 21 '23 02:12 MehdiDRISSIB