# Path: cities/util.py
# def add_continents(continent_model):
#     for ccode, cdata in CONTINENT_DATA.items():
#         try:
#             c = continent_model.objects.get(code=ccode)
#         except continent_model.DoesNotExist:
#             c = continent_model()
#         c.id = cdata[1]
#         c.name = cdata[0]
#         c.code = ccode
#         c.slug = c.name
#         c.save()


import django.contrib.gis.db.models.fields
import django.db.models.deletion
import swapper
from django.db import migrations, models
from ..util import add_continents as util_add_continents
    dependencies = [
        ('cities', '0001_initial'),
        swapper.dependency('cities', 'Country'),
    ]

    operations = [
        migrations.CreateModel(
            name='Continent',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('name', models.CharField(db_index=True, max_length=200, verbose_name='ascii name')),
                ('slug', models.CharField(max_length=200, unique=True)),
                ('code', models.CharField(db_index=True, max_length=2, unique=True)),
            ],
            options={
                'abstract': False,
                'swappable': swapper.swappable_setting('cities', 'Continent'),
            },
        ),
        migrations.AddField(
            model_name='continent',
            name='alt_names',
            field=models.ManyToManyField(related_name='cities_continents', to='cities.AlternativeName'),
        ),
        migrations.RenameField(
            model_name='country',
            old_name='continent',
            new_name='continent_code',
        ),
        migrations.AddField(

# Path: cities/util.py
# def add_continents(continent_model):
#     for ccode, cdata in CONTINENT_DATA.items():
#         try:
#             c = continent_model.objects.get(code=ccode)
#         except continent_model.DoesNotExist:
#             c = continent_model()
#         c.id = cdata[1]
#         c.name = cdata[0]
#         c.code = ccode
#         c.slug = c.name
#         c.save()


# Path: cities/migrations/0002_continent_models_and_foreign_keys.py
import django.contrib.gis.db.models.fields
import django.db.models.deletion
import swapper
from django.db import migrations, models
from ..util import add_continents as util_add_continents

    dependencies = [
        ('cities', '0001_initial'),
        swapper.dependency('cities', 'Country'),
    ]

    operations = [
        migrations.CreateModel(
            name='Continent',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('name', models.CharField(db_index=True, max_length=200, verbose_name='ascii name')),
                ('slug', models.CharField(max_length=200, unique=True)),
                ('code', models.CharField(db_index=True, max_length=2, unique=True)),
            ],
            options={
                'abstract': False,
                'swappable': swapper.swappable_setting('cities', 'Continent'),
            },
        ),
        migrations.AddField(
            model_name='continent',
            name='alt_names',
            field=models.ManyToManyField(related_name='cities_continents', to='cities.AlternativeName'),
        ),
        migrations.RenameField(
            model_name='country',
            old_name='continent',
            new_name='continent_code',
        ),
        migrations.AddField(

            model_name='country',