Files @ 34509d23eb9f
Branch filter:

Location: symposion_app/pinaxcon/registrasion/migrations/0011_add_2018_conf.py - annotation

bsturmfels
Make vendored symposion into an installable Python package

This allows us to install with `pip install "-e vendor/symposion"` similar to
the other vendored packages. There's no good reason for this to be different to
the others and depend on PYTHONPATH hacking.

Re-add
from django.db import migrations


def populate(apps, schema_editor):
    PastEvent = apps.get_model("pinaxcon_registrasion","PastEvent")
    PastEvent.objects.get_or_create(
        year=2018, defaults={'name': '2018 Sydney'}
    )


class Migration(migrations.Migration):

    dependencies = [
        ('pinaxcon_registrasion', '0010_auto_20180929_1530'),
    ]

    operations = [
        migrations.RunPython(populate)
    ]