This commit is contained in:
j 2011-12-17 14:05:09 +05:30
parent 2db127522d
commit 6ce2611c1b

View file

@ -220,6 +220,7 @@ for l in locations:
l['modified'] = datetime.fromtimestamp(int(l['modified'])) l['modified'] = datetime.fromtimestamp(int(l['modified']))
l['alternativeNames'] = tuple(l['alternativeNames']) l['alternativeNames'] = tuple(l['alternativeNames'])
l['geoname'] = l['name'] l['geoname'] = l['name']
l['type'] = 'city'
p, c = Place.objects.get_or_create(name=l['name']) p, c = Place.objects.get_or_create(name=l['name'])
for key in l: for key in l:
if key != 'annotations': if key != 'annotations':