forked from DGNum/gestioCOF
migration
This commit is contained in:
parent
a32278d765
commit
798f522602
1 changed files with 38 additions and 0 deletions
38
bda/migrations/0008_revente.py
Normal file
38
bda/migrations/0008_revente.py
Normal file
|
@ -0,0 +1,38 @@
|
|||
# -*- 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),
|
||||
),
|
||||
]
|
Loading…
Reference in a new issue