nalodeni.pirati.cz/nalodeni/migrations/0027_auto_20180625_0314.py

76 lines
3.2 KiB
Python

# Generated by Django 2.0.3 on 2018-06-25 03:14
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('nalodeni', '0026_appuser_dc_stamp'),
]
operations = [
migrations.CreateModel(
name='Newsletter',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('name', models.CharField(blank=True, max_length=100, null=True, verbose_name='Název')),
('tag', models.CharField(blank=True, max_length=20, null=True, verbose_name='Značka (tag) newsletteru')),
],
),
migrations.CreateModel(
name='UserForm',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('newsletters', models.ManyToManyField(blank=True, to='nalodeni.Newsletter')),
],
),
migrations.CreateModel(
name='UserSkill',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('name', models.CharField(blank=True, max_length=100, null=True, verbose_name='Název')),
('tag', models.CharField(blank=True, max_length=20, null=True, verbose_name='Značka (tag) dovednosti')),
],
),
migrations.CreateModel(
name='UserTopic',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('name', models.CharField(blank=True, max_length=100, null=True, verbose_name='Název')),
('tag', models.CharField(blank=True, max_length=20, null=True, verbose_name='Značka (tag) tématu')),
],
),
migrations.AlterField(
model_name='appregemail',
name='data_consent',
field=models.BooleanField(default=False, verbose_name='Souhlasím se zpracováním osobních údajů.'),
),
migrations.AlterField(
model_name='appuser',
name='dc_stamp',
field=models.DateTimeField(blank=True, default=None, null=True, verbose_name='Data consent timestamp'),
),
migrations.AddField(
model_name='userform',
name='skills',
field=models.ManyToManyField(blank=True, to='nalodeni.UserSkill'),
),
migrations.AddField(
model_name='userform',
name='topics',
field=models.ManyToManyField(blank=True, to='nalodeni.UserTopic'),
),
migrations.AddField(
model_name='appregemail',
name='userform',
field=models.ForeignKey(blank=True, default=None, null=True, on_delete=django.db.models.deletion.CASCADE, to='nalodeni.UserForm', verbose_name='dotazník'),
),
migrations.AddField(
model_name='appuser',
name='userform',
field=models.ForeignKey(blank=True, default=None, null=True, on_delete=django.db.models.deletion.CASCADE, to='nalodeni.UserForm', verbose_name='dotazník'),
),
]