def load_continents(apps, schema_editor):
    continent = apps.get_model('country_name_tool', 'Continent')
    newcontinents = [['NA', 'North America'], ['AS', 'Asia'], ['AF', 'Africa'], ['EU', 'Europe'], ['SA', 'South America'], ['OC', 'Oceania'], ['AN', 'Antarctica']]
    for each in newcontinents:
        toinsert = continent(continent_code=each[0], continent_name=each[1])
        toinsert.save()
def load_continents(apps, schema_editor):
    continent = apps.get_model('country_name_tool', 'Continent')
    newcontinents = [['NA', 'North America'], ['AS', 'Asia'], ['AF', 'Africa'], ['EU', 'Europe'], ['SA', 'South America'], ['OC', 'Oceania'], ['AN', 'Antarctica']]
    for each in newcontinents:
        toinsert = continent(continent_code=each[0], continent_name=each[1])
        toinsert.save()