From ca39dc813bfaee8842346ca684cf390abcf83f74 Mon Sep 17 00:00:00 2001 From: Ludovic Stephan Date: Sat, 23 Jul 2016 22:21:50 +0200 Subject: [PATCH] migration --- bda/migrations/0006_spectaclerevente.py | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 bda/migrations/0006_spectaclerevente.py diff --git a/bda/migrations/0006_spectaclerevente.py b/bda/migrations/0006_spectaclerevente.py new file mode 100644 index 00000000..a1bf12f6 --- /dev/null +++ b/bda/migrations/0006_spectaclerevente.py @@ -0,0 +1,24 @@ +# -*- 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')), + ], + ), + ]