symposion_app/symposion/conference/migrations/0001_initial.py
Sachi King 21b2a01a84 Py2 compatability has been broke elsewhere drop it
This is all noop in Py3, and Py2 is broke now in various places.
Dropping Py2 code as it will not be a thing going forward.

Django 2 is the next release, Py2 support will be dropped, as such,
dropping this is forward looking.
2017-04-29 15:47:19 +10:00

46 lines
1.9 KiB
Python

# -*- coding: utf-8 -*-
# Generated by Django 1.9.7 on 2016-09-17 03:34
from django.db import migrations, models
import django.db.models.deletion
import timezone_field.fields
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Conference',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('title', models.CharField(max_length=100, verbose_name='Title')),
('start_date', models.DateField(blank=True, null=True, verbose_name='Start date')),
('end_date', models.DateField(blank=True, null=True, verbose_name='End date')),
('timezone', timezone_field.fields.TimeZoneField(blank=True, verbose_name='timezone')),
],
options={
'verbose_name': 'conference',
'verbose_name_plural': 'conferences',
},
),
migrations.CreateModel(
name='Section',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('name', models.CharField(max_length=100, verbose_name='Name')),
('slug', models.SlugField(verbose_name='Slug')),
('start_date', models.DateField(blank=True, null=True, verbose_name='Start date')),
('end_date', models.DateField(blank=True, null=True, verbose_name='End date')),
('conference', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='symposion_conference.Conference', verbose_name='Conference')),
],
options={
'ordering': ['start_date'],
'verbose_name': 'section',
'verbose_name_plural': 'sections',
},
),
]