2016-09-21 15:40:31 +02:00
|
|
|
# -*- coding: utf-8 -*-
|
|
|
|
from __future__ import unicode_literals
|
|
|
|
|
|
|
|
import django.utils.timezone
|
2018-10-06 12:35:49 +02:00
|
|
|
from django.db import migrations, models
|
2016-09-21 15:40:31 +02:00
|
|
|
|
|
|
|
|
|
|
|
class Migration(migrations.Migration):
|
2018-10-06 12:35:49 +02:00
|
|
|
dependencies = [("bda", "0008_py3")]
|
2016-09-21 15:40:31 +02:00
|
|
|
|
|
|
|
operations = [
|
|
|
|
migrations.CreateModel(
|
2018-10-06 12:35:49 +02:00
|
|
|
name="SpectacleRevente",
|
2016-09-21 15:40:31 +02:00
|
|
|
fields=[
|
2018-10-06 12:35:49 +02:00
|
|
|
(
|
|
|
|
"id",
|
|
|
|
models.AutoField(
|
|
|
|
serialize=False,
|
|
|
|
primary_key=True,
|
|
|
|
auto_created=True,
|
|
|
|
verbose_name="ID",
|
|
|
|
),
|
|
|
|
),
|
|
|
|
(
|
|
|
|
"date",
|
|
|
|
models.DateTimeField(
|
|
|
|
verbose_name="Date de mise en vente",
|
|
|
|
default=django.utils.timezone.now,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
(
|
|
|
|
"notif_sent",
|
|
|
|
models.BooleanField(
|
|
|
|
verbose_name="Notification envoyée", default=False
|
|
|
|
),
|
|
|
|
),
|
|
|
|
(
|
|
|
|
"tirage_done",
|
|
|
|
models.BooleanField(verbose_name="Tirage effectué", default=False),
|
|
|
|
),
|
2016-09-21 15:40:31 +02:00
|
|
|
],
|
2018-10-06 12:35:49 +02:00
|
|
|
options={"verbose_name": "Revente"},
|
2016-09-21 15:40:31 +02:00
|
|
|
),
|
|
|
|
migrations.AddField(
|
2018-10-06 12:35:49 +02:00
|
|
|
model_name="participant",
|
|
|
|
name="choicesrevente",
|
|
|
|
field=models.ManyToManyField(
|
|
|
|
to="bda.Spectacle", related_name="subscribed", blank=True
|
|
|
|
),
|
2016-09-21 15:40:31 +02:00
|
|
|
),
|
|
|
|
migrations.AddField(
|
2018-10-06 12:35:49 +02:00
|
|
|
model_name="spectaclerevente",
|
|
|
|
name="answered_mail",
|
|
|
|
field=models.ManyToManyField(
|
|
|
|
to="bda.Participant", related_name="wanted", blank=True
|
|
|
|
),
|
2016-09-27 16:19:23 +02:00
|
|
|
),
|
|
|
|
migrations.AddField(
|
2018-10-06 12:35:49 +02:00
|
|
|
model_name="spectaclerevente",
|
|
|
|
name="attribution",
|
|
|
|
field=models.OneToOneField(
|
|
|
|
to="bda.Attribution", on_delete=models.CASCADE, related_name="revente"
|
|
|
|
),
|
2016-09-21 15:40:31 +02:00
|
|
|
),
|
|
|
|
migrations.AddField(
|
2018-10-06 12:35:49 +02:00
|
|
|
model_name="spectaclerevente",
|
|
|
|
name="seller",
|
|
|
|
field=models.ForeignKey(
|
|
|
|
to="bda.Participant",
|
|
|
|
on_delete=models.CASCADE,
|
|
|
|
verbose_name="Vendeur",
|
|
|
|
related_name="original_shows",
|
|
|
|
),
|
2016-09-21 15:40:31 +02:00
|
|
|
),
|
|
|
|
migrations.AddField(
|
2018-10-06 12:35:49 +02:00
|
|
|
model_name="spectaclerevente",
|
|
|
|
name="soldTo",
|
|
|
|
field=models.ForeignKey(
|
|
|
|
to="bda.Participant",
|
|
|
|
on_delete=models.CASCADE,
|
|
|
|
verbose_name="Vendue à",
|
|
|
|
null=True,
|
|
|
|
blank=True,
|
|
|
|
),
|
2016-09-21 15:40:31 +02:00
|
|
|
),
|
|
|
|
]
|