stef/nnmon — Issue #16: Country codes are all mixed up
Author: zorun
Created: 2011-11-03 16:47:16+00:00
State: open

Country codes, as defined in 'bt/models.py', are using the [ISO 639](http://en.wikipedia.org/wiki/ISO_639-1) standard, which is for language codes.

It would be far more suitable to use the [ISO 3166](http://en.wikipedia.org/wiki/ISO_3166) standard that is designed for country codes.

Actually, the map on the 'list' page is providing links to filter by countries, but this time using the ISO 3166 standard, which leads to inconsistency (for example, http://respectmynet.eu/list/GR returns 404 because Greece has the ISO 639 code 'EL' in the RMN database).

It's fine for most countries though, because these codes are often the same.

I would suggest using ISO 3166 everywhere, but since it involves changing many country codes in 'bt/models.py', I'm not sure of the effect on the database ;)