gestioCOF/bda/migrations/0008_revente.py

39 lines
1.3 KiB
Python
Raw Normal View History

2016-09-03 05:25:01 +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', '0007_extends_spectacle'),
]
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', blank=True),
),
migrations.AddField(
model_name='spectaclerevente',
name='interested',
field=models.ManyToManyField(related_name='wanted', to='bda.Participant', blank=True),
),
migrations.AddField(
model_name='spectaclerevente',
name='soldTo',
field=models.ForeignKey(blank=True, to='bda.Participant', null=True),
),
]