From 92dd9a18a252b5cb4f256b5a8c9f9307538d34a5 Mon Sep 17 00:00:00 2001 From: Ludovic Stephan Date: Mon, 25 Jul 2016 02:54:04 +0200 Subject: [PATCH] migrations --- bda/migrations/0006_revente.py | 38 +++++++++++++++++++++++++ bda/migrations/0006_spectaclerevente.py | 24 ---------------- 2 files changed, 38 insertions(+), 24 deletions(-) create mode 100644 bda/migrations/0006_revente.py delete mode 100644 bda/migrations/0006_spectaclerevente.py diff --git a/bda/migrations/0006_revente.py b/bda/migrations/0006_revente.py new file mode 100644 index 00000000..8aa7c0f8 --- /dev/null +++ b/bda/migrations/0006_revente.py @@ -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), + ), + ] diff --git a/bda/migrations/0006_spectaclerevente.py b/bda/migrations/0006_spectaclerevente.py deleted file mode 100644 index a1bf12f6..00000000 --- a/bda/migrations/0006_spectaclerevente.py +++ /dev/null @@ -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')), - ], - ), - ]