gestioCOF/bda/migrations/0009_revente.py

87 lines
2.7 KiB
Python
Raw Permalink Normal View History

2016-09-21 15:40:31 +02:00
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
import django.utils.timezone
from django.db import migrations, models
2016-09-21 15:40:31 +02:00
class Migration(migrations.Migration):
dependencies = [("bda", "0008_py3")]
2016-09-21 15:40:31 +02:00
operations = [
migrations.CreateModel(
name="SpectacleRevente",
2016-09-21 15:40:31 +02:00
fields=[
(
"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
],
options={"verbose_name": "Revente"},
2016-09-21 15:40:31 +02:00
),
migrations.AddField(
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(
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(
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(
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(
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
),
]