kpsul/bda/migrations/0009_revente.py

60 lines
2.2 KiB
Python
Raw Normal View History

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-26 16:03:33 +02:00
('id', models.AutoField(verbose_name='ID', serialize=False,
auto_created=True, primary_key=True)),
('date', models.DateTimeField(
default=django.utils.timezone.now,
verbose_name='Date de mise en vente')),
('notif_sent', models.BooleanField(
default=False, verbose_name='Notification envoy\xe9e')),
('tirage_done', models.BooleanField(
default=False, verbose_name='Tirage effectu\xe9')),
('attribution', models.OneToOneField(related_name='revente',
to='bda.Attribution')),
2016-09-21 15:40:31 +02:00
],
options={
'verbose_name': 'Revente',
},
),
migrations.AddField(
model_name='participant',
name='choicesrevente',
2016-09-26 16:03:33 +02:00
field=models.ManyToManyField(related_name='revente',
to='bda.Spectacle', blank=True),
2016-09-21 15:40:31 +02:00
),
migrations.AddField(
model_name='spectaclerevente',
name='interested',
2016-09-26 16:03:33 +02:00
field=models.ManyToManyField(related_name='wanted',
to='bda.Participant', blank=True),
2016-09-21 15:40:31 +02:00
),
migrations.AddField(
model_name='spectaclerevente',
name='seller',
2016-09-26 16:03:33 +02:00
field=models.ForeignKey(related_name='original_shows',
verbose_name='Vendeur',
to='bda.Participant'),
2016-09-21 15:40:31 +02:00
),
migrations.AddField(
model_name='spectaclerevente',
name='soldTo',
2016-09-26 16:03:33 +02:00
field=models.ForeignKey(verbose_name='Vendue \xe0', blank=True,
to='bda.Participant', null=True),
2016-09-21 15:40:31 +02:00
),
]