{"action":"closed","issue":{"url":"https://api.github.com/repos/SmileyChris/django-countries/issues/98","labels_url":"https://api.github.com/repos/SmileyChris/django-countries/issues/98/labels{/name}","comments_url":"https://api.github.com/repos/SmileyChris/django-countries/issues/98/comments","events_url":"https://api.github.com/repos/SmileyChris/django-countries/issues/98/events","html_url":"https://github.com/SmileyChris/django-countries/issues/98","id":59362223,"number":98,"title":"Different country choices for different model fields","user":{"login":"soult","id":2302,"avatar_url":"https://avatars.githubusercontent.com/u/2302?v=3","gravatar_id":"","url":"https://api.github.com/users/soult","html_url":"https://github.com/soult","followers_url":"https://api.github.com/users/soult/followers","following_url":"https://api.github.com/users/soult/following{/other_user}","gists_url":"https://api.github.com/users/soult/gists{/gist_id}","starred_url":"https://api.github.com/users/soult/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/soult/subscriptions","organizations_url":"https://api.github.com/users/soult/orgs","repos_url":"https://api.github.com/users/soult/repos","events_url":"https://api.github.com/users/soult/events{/privacy}","received_events_url":"https://api.github.com/users/soult/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-02-28T22:26:19Z","updated_at":"2015-03-01T10:13:26Z","closed_at":"2015-03-01T10:13:26Z","body":"For a website I need to limit the country choices on a per-field basis. The usual way of using the `COUNTRIES_ONLY` setting does not work here.\r\n\r\nExample: A phone provider that has customers in the US and Canada, and allows calls to US, Canada and also the UK wants to log all calls:\r\n```python\r\nclass Call(models.Model):\r\n    customer = models.ForeignKey(Customer)\r\n    calling_from = CountryField(choices=[\r\n        (\"US\", _(\"United States of America\")), (\"CA\", _(\"Canada\"))]\r\n    calling_to = CountryField(choices=[\r\n        (\"US\", _(\"United States of America\")), (\"CA\", _(\"Canada\")),\r\n        (\"UK\", _(\"United Kingdom and Northern Ireland\"))]\r\n```\r\n\r\nUnfortunately this also doesn't work, because the choices kwarg [is always overwritten with the full list of countries](https://github.com/SmileyChris/django-countries/blob/master/django_countries/fields.py#L147-150).\r\n\r\nDo you think that only setting the choices kwarg when it is unset would be ok or is there some other code that depends on it?"}}