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