PonyConf/volunteers/migrations/0001_initial.py

35 lines
1.2 KiB
Python
Raw Normal View History

2016-10-19 21:36:15 +00:00
# -*- coding: utf-8 -*-
2016-10-21 23:07:29 +00:00
# Generated by Django 1.10 on 2016-10-19 21:17
2016-10-19 21:36:15 +00:00
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
2016-10-21 22:56:37 +00:00
('sites', '0002_alter_domain_unique'),
2016-10-21 23:07:29 +00:00
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
2016-10-19 21:36:15 +00:00
]
operations = [
migrations.CreateModel(
name='Activity',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('name', models.CharField(max_length=256, verbose_name='Name')),
('description', models.TextField(blank=True, verbose_name='Description')),
('participants', models.ManyToManyField(blank=True, to=settings.AUTH_USER_MODEL, verbose_name='Participants')),
('site', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='sites.Site')),
],
),
migrations.AlterUniqueTogether(
name='activity',
unique_together=set([('site', 'name')]),
),
]