gestioCOF/bda/migrations/0006_revente.py

39 lines
1.3 KiB
Python
Raw Normal View History

2016-07-25 02:54:04 +02:00
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
import django.utils.timezone
class Migration(migrations.Migration):
dependencies = [
('bda', '0005_encoding'),
]
operations = [
migrations.CreateModel(
name='SpectacleRevente',
fields=[
('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')),
('attribution', models.OneToOneField(related_name='revente', to='bda.Attribution')),
],
),
migrations.AddField(
model_name='participant',
name='choicesrevente',
field=models.ManyToManyField(related_name='revente', to='bda.Spectacle'),
),
migrations.AddField(
model_name='spectaclerevente',
name='interested',
field=models.ManyToManyField(related_name='wanted', to='bda.Participant'),
),
migrations.AddField(
model_name='spectaclerevente',
name='soldTo',
field=models.ForeignKey(blank=True, to='bda.Participant', null=True),
),
]