oacpl/events/migrations/0001_initial.py

44 lines
1.4 KiB
Python
Raw Normal View History

2018-02-26 22:02:50 -05:00
# -*- coding: utf-8 -*-
# Generated by Django 1.11.5 on 2018-02-27 00:36
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
import tinymce.models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Attendees',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('name', models.CharField(max_length=255)),
('paid', models.BooleanField(default=False)),
],
),
migrations.CreateModel(
name='Event',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('title', models.CharField(max_length=255)),
('date', models.DateField()),
('location', models.CharField(max_length=255)),
('description', tinymce.models.HTMLField()),
('max_attendees', models.IntegerField(blank=True, null=True)),
('cost', models.DecimalField(decimal_places=2, max_digits=6)),
],
),
migrations.AddField(
model_name='attendees',
name='event',
field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='events.Event'),
),
]