2016-08-26 05:28:04 +02:00
|
|
|
# -*- coding: utf-8 -*-
|
|
|
|
from __future__ import unicode_literals
|
|
|
|
|
|
|
|
from django.db import models, migrations
|
|
|
|
|
|
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
|
|
|
|
dependencies = [
|
|
|
|
('bda', '0006_add_tirage_switch'),
|
|
|
|
]
|
|
|
|
|
|
|
|
operations = [
|
|
|
|
migrations.CreateModel(
|
|
|
|
name='CategorieSpectacle',
|
|
|
|
fields=[
|
|
|
|
('id', models.AutoField(verbose_name='ID', serialize=False,
|
|
|
|
auto_created=True, primary_key=True)),
|
2016-08-31 00:10:53 +02:00
|
|
|
('name', models.CharField(max_length=100, verbose_name='Nom',
|
2016-08-26 06:06:45 +02:00
|
|
|
unique=True)),
|
2016-08-26 05:28:04 +02:00
|
|
|
],
|
|
|
|
options={
|
|
|
|
'verbose_name': 'Cat\xe9gorie',
|
|
|
|
},
|
|
|
|
),
|
|
|
|
migrations.CreateModel(
|
|
|
|
name='Quote',
|
|
|
|
fields=[
|
2016-08-26 06:06:45 +02:00
|
|
|
('id', models.AutoField(verbose_name='ID', serialize=False,
|
|
|
|
auto_created=True, primary_key=True)),
|
2016-08-26 05:28:04 +02:00
|
|
|
('text', models.TextField(verbose_name='Citation')),
|
2016-08-26 06:06:45 +02:00
|
|
|
('author', models.CharField(max_length=200,
|
|
|
|
verbose_name='Auteur')),
|
2016-08-26 05:28:04 +02:00
|
|
|
],
|
|
|
|
),
|
|
|
|
migrations.AlterModelOptions(
|
|
|
|
name='spectacle',
|
|
|
|
options={'ordering': ('date', 'title'),
|
|
|
|
'verbose_name': 'Spectacle'},
|
|
|
|
),
|
|
|
|
migrations.RemoveField(
|
|
|
|
model_name='spectacle',
|
|
|
|
name='priority',
|
|
|
|
),
|
|
|
|
migrations.AddField(
|
|
|
|
model_name='spectacle',
|
|
|
|
name='ext_link',
|
|
|
|
field=models.CharField(
|
|
|
|
max_length=500,
|
|
|
|
verbose_name='Lien vers le site du spectacle',
|
|
|
|
blank=True),
|
|
|
|
),
|
|
|
|
migrations.AddField(
|
|
|
|
model_name='spectacle',
|
|
|
|
name='image',
|
|
|
|
field=models.ImageField(upload_to='imgs/shows/', null=True,
|
|
|
|
verbose_name='Image', blank=True),
|
|
|
|
),
|
|
|
|
migrations.AlterField(
|
|
|
|
model_name='tirage',
|
|
|
|
name='enable_do_tirage',
|
|
|
|
field=models.BooleanField(
|
|
|
|
default=False,
|
|
|
|
verbose_name='Le tirage peut \xeatre lanc\xe9'),
|
|
|
|
),
|
|
|
|
migrations.AlterField(
|
|
|
|
model_name='tirage',
|
|
|
|
name='tokens',
|
|
|
|
field=models.TextField(verbose_name='Graine(s) du tirage',
|
|
|
|
blank=True),
|
|
|
|
),
|
|
|
|
migrations.AddField(
|
|
|
|
model_name='spectacle',
|
|
|
|
name='category',
|
2017-02-22 19:28:34 +01:00
|
|
|
field=models.ForeignKey(
|
|
|
|
on_delete=models.CASCADE,
|
|
|
|
blank=True,
|
|
|
|
to='bda.CategorieSpectacle',
|
|
|
|
null=True),
|
2016-08-26 05:28:04 +02:00
|
|
|
),
|
|
|
|
migrations.AddField(
|
|
|
|
model_name='spectacle',
|
|
|
|
name='vips',
|
|
|
|
field=models.TextField(verbose_name='Personnalit\xe9s',
|
|
|
|
blank=True),
|
|
|
|
),
|
|
|
|
migrations.AddField(
|
|
|
|
model_name='quote',
|
|
|
|
name='spectacle',
|
2017-02-22 19:28:34 +01:00
|
|
|
field=models.ForeignKey(
|
|
|
|
on_delete=models.CASCADE,
|
|
|
|
to='bda.Spectacle'),
|
2016-08-26 05:28:04 +02:00
|
|
|
),
|
|
|
|
]
|