# Generated by Django 2.2.24 on 2021-09-07 13:40

from django.db import migrations, models


def do_nothing(apps, schema_editor):
    pass


def create_initial_as(apps, schema_editor):
    topping_model = apps.get_model('pizzeria', 'Topping')
    pizza_model = apps.get_model('pizzeria', 'Pizza')
    topping = topping_model.objects.create(name='Pepperoni')
    pizza = pizza_model.objects.create(name='Pepperoni Lovers')
    pizza.toppings.add(topping)


class Migration(migrations.Migration):

    initial = True

    dependencies = [
        ('pizzeria', '0001_initial'),
    ]

    operations = [
        migrations.RunPython(create_initial_as, reverse_code=do_nothing, elidable=True),

    ]
