forked from DGNum/gestioCOF
migrations
This commit is contained in:
parent
78096bd6d0
commit
92dd9a18a2
2 changed files with 38 additions and 24 deletions
38
bda/migrations/0006_revente.py
Normal file
38
bda/migrations/0006_revente.py
Normal file
|
@ -0,0 +1,38 @@
|
||||||
|
# -*- 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),
|
||||||
|
),
|
||||||
|
]
|
|
@ -1,24 +0,0 @@
|
||||||
# -*- 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')),
|
|
||||||
('sold', models.BooleanField(default=False, verbose_name='Vendue')),
|
|
||||||
('attribution', models.OneToOneField(to='bda.Attribution')),
|
|
||||||
],
|
|
||||||
),
|
|
||||||
]
|
|
Loading…
Reference in a new issue