2016-07-15 01:06:33 +02:00
|
|
|
# -*- coding: utf-8 -*-
|
|
|
|
from __future__ import unicode_literals
|
|
|
|
|
|
|
|
from django.conf import settings
|
2018-10-06 12:35:49 +02:00
|
|
|
from django.db import migrations, models
|
2016-07-15 01:06:33 +02:00
|
|
|
|
|
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
|
|
|
|
dependencies = [
|
2018-10-06 12:35:49 +02:00
|
|
|
("bda", "0004_mails-rappel"),
|
2016-07-15 01:06:33 +02:00
|
|
|
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
|
2018-10-06 12:35:49 +02:00
|
|
|
("gestioncof", "0005_encoding"),
|
2016-07-15 01:06:33 +02:00
|
|
|
]
|
|
|
|
|
|
|
|
operations = [
|
|
|
|
migrations.CreateModel(
|
2018-10-06 12:35:49 +02:00
|
|
|
name="CalendarSubscription",
|
2016-07-15 01:06:33 +02:00
|
|
|
fields=[
|
2018-10-06 12:35:49 +02:00
|
|
|
(
|
|
|
|
"id",
|
|
|
|
models.AutoField(
|
|
|
|
verbose_name="ID",
|
|
|
|
serialize=False,
|
|
|
|
auto_created=True,
|
|
|
|
primary_key=True,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
("token", models.UUIDField()),
|
|
|
|
("subscribe_to_events", models.BooleanField(default=True)),
|
|
|
|
("subscribe_to_my_shows", models.BooleanField(default=True)),
|
|
|
|
("other_shows", models.ManyToManyField(to="bda.Spectacle")),
|
|
|
|
(
|
|
|
|
"user",
|
|
|
|
models.OneToOneField(
|
|
|
|
to=settings.AUTH_USER_MODEL, on_delete=models.CASCADE
|
|
|
|
),
|
|
|
|
),
|
2016-07-15 01:06:33 +02:00
|
|
|
],
|
|
|
|
),
|
2016-07-15 02:49:56 +02:00
|
|
|
migrations.AlterModelOptions(
|
2018-10-06 12:35:49 +02:00
|
|
|
name="custommail",
|
|
|
|
options={
|
|
|
|
"verbose_name": "Mail personnalisable",
|
|
|
|
"verbose_name_plural": "Mails personnalisables",
|
|
|
|
},
|
2016-07-15 02:49:56 +02:00
|
|
|
),
|
|
|
|
migrations.AlterModelOptions(
|
2018-10-06 12:35:49 +02:00
|
|
|
name="eventoptionchoice",
|
|
|
|
options={"verbose_name": "Choix", "verbose_name_plural": "Choix"},
|
2016-07-15 02:49:56 +02:00
|
|
|
),
|
2016-07-15 01:06:33 +02:00
|
|
|
migrations.AlterField(
|
2018-10-06 12:35:49 +02:00
|
|
|
model_name="event",
|
|
|
|
name="end_date",
|
|
|
|
field=models.DateTimeField(
|
|
|
|
null=True, verbose_name=b"Date de fin", blank=True
|
|
|
|
),
|
2016-07-15 01:06:33 +02:00
|
|
|
),
|
|
|
|
migrations.AlterField(
|
2018-10-06 12:35:49 +02:00
|
|
|
model_name="event",
|
|
|
|
name="start_date",
|
2016-07-16 01:51:20 +02:00
|
|
|
field=models.DateTimeField(
|
2018-10-06 12:35:49 +02:00
|
|
|
null=True, verbose_name=b"Date de d\xc3\xa9but", blank=True
|
|
|
|
),
|
2016-07-15 01:06:33 +02:00
|
|
|
),
|
|
|
|
]
|