Squash CFP migrations for moving into production
This commit is contained in:
parent
2be635ea0d
commit
054d4cad97
|
@ -1,5 +1,5 @@
|
||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
# Generated by Django 1.10.5 on 2017-05-29 20:47
|
# Generated by Django 1.11 on 2017-06-06 22:14
|
||||||
from __future__ import unicode_literals
|
from __future__ import unicode_literals
|
||||||
|
|
||||||
import autoslug.fields
|
import autoslug.fields
|
||||||
|
@ -8,6 +8,7 @@ from django.conf import settings
|
||||||
import django.core.validators
|
import django.core.validators
|
||||||
from django.db import migrations, models
|
from django.db import migrations, models
|
||||||
import django.db.models.deletion
|
import django.db.models.deletion
|
||||||
|
import uuid
|
||||||
|
|
||||||
|
|
||||||
class Migration(migrations.Migration):
|
class Migration(migrations.Migration):
|
||||||
|
@ -24,9 +25,13 @@ class Migration(migrations.Migration):
|
||||||
name='Conference',
|
name='Conference',
|
||||||
fields=[
|
fields=[
|
||||||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||||||
|
('name', models.CharField(blank=True, max_length=100)),
|
||||||
('home', models.TextField(blank=True, default='')),
|
('home', models.TextField(blank=True, default='')),
|
||||||
('venue', models.TextField(blank=True, default='')),
|
('venue', models.TextField(blank=True, default='')),
|
||||||
('city', models.CharField(blank=True, default='', max_length=64)),
|
('city', models.CharField(blank=True, default='', max_length=64)),
|
||||||
|
('contact_email', models.CharField(blank=True, max_length=100)),
|
||||||
|
('custom_css', models.TextField(blank=True)),
|
||||||
|
('external_css_link', models.URLField(blank=True)),
|
||||||
('site', models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, to='sites.Site')),
|
('site', models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, to='sites.Site')),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
|
@ -36,10 +41,18 @@ class Migration(migrations.Migration):
|
||||||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||||||
('created', models.DateTimeField(auto_now_add=True)),
|
('created', models.DateTimeField(auto_now_add=True)),
|
||||||
('updated', models.DateTimeField(auto_now=True)),
|
('updated', models.DateTimeField(auto_now=True)),
|
||||||
('name', models.CharField(max_length=128)),
|
('name', models.CharField(max_length=128, verbose_name='Your Name')),
|
||||||
('email', models.EmailField(max_length=254)),
|
('email', models.EmailField(max_length=254)),
|
||||||
('phone_number', models.CharField(blank=True, default='', max_length=16, verbose_name='Phone number')),
|
('biography', models.TextField(verbose_name='Biography')),
|
||||||
('biography', models.TextField(blank=True, verbose_name='Biography')),
|
('token', models.UUIDField(default=uuid.uuid4, editable=False)),
|
||||||
|
('twitter', models.CharField(blank=True, default='', max_length=100, verbose_name='Twitter')),
|
||||||
|
('linkedin', models.CharField(blank=True, default='', max_length=100, verbose_name='LinkedIn')),
|
||||||
|
('github', models.CharField(blank=True, default='', max_length=100, verbose_name='Github')),
|
||||||
|
('website', models.CharField(blank=True, default='', max_length=100, verbose_name='Website')),
|
||||||
|
('facebook', models.CharField(blank=True, default='', max_length=100, verbose_name='Facebook')),
|
||||||
|
('mastodon', models.CharField(blank=True, default='', max_length=100, verbose_name='Mastodon')),
|
||||||
|
('phone_number', models.CharField(blank=True, default='', max_length=64, verbose_name='Phone number')),
|
||||||
|
('language', models.CharField(blank=True, max_length=10)),
|
||||||
('notes', models.TextField(blank=True, default='', help_text='This field is only visible by organizers.', verbose_name='Notes')),
|
('notes', models.TextField(blank=True, default='', help_text='This field is only visible by organizers.', verbose_name='Notes')),
|
||||||
('vip', models.BooleanField(default=False)),
|
('vip', models.BooleanField(default=False)),
|
||||||
('site', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='sites.Site')),
|
('site', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='sites.Site')),
|
||||||
|
@ -51,16 +64,17 @@ class Migration(migrations.Migration):
|
||||||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||||||
('created', models.DateTimeField(auto_now_add=True)),
|
('created', models.DateTimeField(auto_now_add=True)),
|
||||||
('updated', models.DateTimeField(auto_now=True)),
|
('updated', models.DateTimeField(auto_now=True)),
|
||||||
('title', models.CharField(help_text='After submission, title can only be changed by the staff.', max_length=128, verbose_name='Title')),
|
('title', models.CharField(max_length=128, verbose_name='Talk Title')),
|
||||||
('slug', autoslug.fields.AutoSlugField(editable=False, populate_from='title', unique=True)),
|
('slug', autoslug.fields.AutoSlugField(editable=False, populate_from='title', unique=True)),
|
||||||
('description', models.TextField(blank=True, verbose_name='Description')),
|
('description', models.TextField(verbose_name='Description of your talk')),
|
||||||
('notes', models.TextField(blank=True, verbose_name='Message to organizers')),
|
('notes', models.TextField(blank=True, help_text='If you have any constraint or if you have anything that may help you to select your talk, like a video or slides of your talk, please write it down here', verbose_name='Message to organizers')),
|
||||||
('videotaped', models.BooleanField(default=True, verbose_name="I'm ok to be recorded on video")),
|
('videotaped', models.BooleanField(default=True, verbose_name="I'm ok to be recorded on video")),
|
||||||
('video_licence', models.IntegerField(choices=[(1, 'CC-Zero'), (2, 'CC-BY'), (3, 'CC-BY-SA'), (4, 'CC-BY-ND'), (5, 'CC-BY-NC'), (6, 'CC-BY-NC-SA'), (7, 'CC-BY-NC-ND')], default=2, verbose_name='Video licence')),
|
('video_licence', models.CharField(choices=[('CC-Zero CC-BY', 'CC-Zero CC-BY'), ('CC-BY-SA', 'CC-BY-SA'), ('CC-BY-ND', 'CC-BY-ND'), ('CC-BY-NC', 'CC-BY-NC'), ('CC-BY-NC-SA', 'CC-BY-NC-SA'), ('CC-BY-NC-ND', 'CC-BY-NC-ND')], default='CC-BY-SA', max_length=10, verbose_name='Video licence')),
|
||||||
('sound', models.BooleanField(default=False, verbose_name='I need sound')),
|
('sound', models.BooleanField(default=False, verbose_name='I need sound')),
|
||||||
('accepted', models.NullBooleanField(default=None)),
|
('accepted', models.NullBooleanField(default=None)),
|
||||||
('duration', models.PositiveIntegerField(default=0, verbose_name='Duration (min)')),
|
('duration', models.PositiveIntegerField(default=0, verbose_name='Duration (min)')),
|
||||||
('plenary', models.BooleanField(default=False)),
|
('plenary', models.BooleanField(default=False)),
|
||||||
|
('token', models.UUIDField(default=uuid.uuid4, editable=False)),
|
||||||
],
|
],
|
||||||
options={
|
options={
|
||||||
'ordering': ('category__id', 'title'),
|
'ordering': ('category__id', 'title'),
|
||||||
|
@ -79,6 +93,8 @@ class Migration(migrations.Migration):
|
||||||
('site', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='sites.Site')),
|
('site', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='sites.Site')),
|
||||||
],
|
],
|
||||||
options={
|
options={
|
||||||
|
'verbose_name': 'category',
|
||||||
|
'verbose_name_plural': 'categories',
|
||||||
'ordering': ('pk',),
|
'ordering': ('pk',),
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
|
@ -108,7 +124,7 @@ class Migration(migrations.Migration):
|
||||||
migrations.AddField(
|
migrations.AddField(
|
||||||
model_name='talk',
|
model_name='talk',
|
||||||
name='category',
|
name='category',
|
||||||
field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='cfp.TalkCategory', verbose_name='Intervention kind'),
|
field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='cfp.TalkCategory', verbose_name='Talk Category'),
|
||||||
),
|
),
|
||||||
migrations.AddField(
|
migrations.AddField(
|
||||||
model_name='talk',
|
model_name='talk',
|
||||||
|
|
Loading…
Reference in New Issue