ernestophone.ens.fr/calendrier/migrations/0001_initial.py

44 lines
1.9 KiB
Python
Raw Normal View History

# -*- coding: utf-8 -*-
from __future__ import unicode_literals
2017-05-23 10:30:18 +02:00
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
2017-05-23 10:30:18 +02:00
('gestion', '0001_initial'),
]
operations = [
migrations.CreateModel(
name='Event',
fields=[
2017-05-23 10:30:18 +02:00
('id', models.AutoField(auto_created=True, primary_key=True, verbose_name='ID', serialize=False)),
('nom', models.CharField(max_length=100)),
2017-05-23 10:30:18 +02:00
('nomcourt', models.CharField(max_length=9, verbose_name='Nom court')),
('date', models.DateField()),
('debut', models.TimeField()),
('fin', models.TimeField(blank=True, null=True)),
2017-05-23 10:30:18 +02:00
('slug', models.CharField(max_length=7, editable=False, unique=True)),
('lieu', models.CharField(max_length=200)),
('description', models.TextField(blank=True)),
2017-05-23 10:30:18 +02:00
('desc_users', models.TextField(blank=True, verbose_name='Infos (visible seulement des fanfaron-ne-s)', null=True)),
('calendrier', models.BooleanField(verbose_name='Afficher dans le calendrier pour tous', default=False)),
],
options={
'verbose_name': 'Événement',
},
),
migrations.CreateModel(
name='Participants',
fields=[
2017-05-23 10:30:18 +02:00
('id', models.AutoField(auto_created=True, primary_key=True, verbose_name='ID', serialize=False)),
('reponse', models.CharField(max_length=20, choices=[('oui', 'Oui'), ('non', 'Non'), ('pe', 'Peut-être')], default='non', verbose_name='Réponse')),
('details', models.CharField(blank=True, max_length=50)),
2018-01-04 23:43:10 +01:00
('event', models.ForeignKey(to='calendrier.Event', on_delete=models.CASCADE)),
('participant', models.ForeignKey(to='gestion.ErnestoUser', on_delete=models.CASCADE)),
],
),
]