Тернарные коды стран в django_countries
Мне нужно перечислить троичные коды стран в django_countries, но я не могу добраться до списка
мой импорт :
from django_countries import countries
...
def populate_countries():
for country in list(countries):
Country.objects.get_or_create(
country_name=country.name,
country_code=country.code
)
...
>>> AttributeError: 'CountryTuple' object has no attribute 'alpha3'
Как я могу связаться с ними?