summaryrefslogtreecommitdiff
path: root/mirrors/migrations
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2014-02-22 08:49:58 -0600
committerDan McGee <dan@archlinux.org>2014-02-22 08:49:58 -0600
commit16b22e4bfc2e271a58a79a9fb4ccb5e059c6d62a (patch)
tree8121de555779c5b7a1796ad62842aec0f166a8f6 /mirrors/migrations
parent5fcc6af4ddd0d6f9fbe491a1fd5a9a0edc5b52a5 (diff)
Upgrade django-countries to 2.0
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'mirrors/migrations')
-rw-r--r--mirrors/migrations/0015_assign_country_codes.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/mirrors/migrations/0015_assign_country_codes.py b/mirrors/migrations/0015_assign_country_codes.py
index c1b0f969..5d83e02c 100644
--- a/mirrors/migrations/0015_assign_country_codes.py
+++ b/mirrors/migrations/0015_assign_country_codes.py
@@ -4,12 +4,12 @@ from south.db import db
from south.v2 import DataMigration
from django.db import models
-from django_countries.countries import OFFICIAL_COUNTRIES
+from django_countries.data import COUNTRIES
class Migration(DataMigration):
def forwards(self, orm):
- reverse_map = dict((v, k) for k, v in OFFICIAL_COUNTRIES.items())
+ reverse_map = dict((v.upper(), k) for k, v in COUNTRIES.items())
# add a few special cases to the list that we know might exist
reverse_map['GREAT BRITAIN'] = 'GB'
reverse_map['KOREA'] = 'KR'