SmileyChris / django-countries

A Django application that provides country choices for use with forms, flag icons static files, and a country field for models.

Home Page:https://pypi.python.org/pypi/django-countries

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Include nationalities

woochica opened this issue · comments

Is it reasonable that this package would also include the nationalities?

Use case:

>>> person.birth_place.code
"DE"
>>> person.birth_place.name
"Germany"
>>> person.birth_place.nationality  # not possible at the moment
"German"

See related question on Stack Overflow: https://stackoverflow.com/questions/66222422/how-to-get-nationalities-with-django-countries

There's a not really maintained community package django-nationalities that provides this functionality. Could it be merged to django-countries?

I don't think it needs to be merged in, but if you look at the docs section on external plugin then it should be pretty straight-forward to create a PR for django-nationalities so it provides the extra you want.