40 lines
1.4 KiB
Python
40 lines
1.4 KiB
Python
# Generated by Django 2.2.4 on 2019-09-08 13:50
|
|
|
|
import datetime
|
|
from django.db import migrations, models
|
|
import django.db.models.deletion
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
dependencies = [
|
|
('timeline', '0001_initial'),
|
|
]
|
|
|
|
operations = [
|
|
migrations.CreateModel(
|
|
name='Evenement',
|
|
fields=[
|
|
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
|
('titre', models.CharField(max_length=200)),
|
|
('date', models.DateField(default=datetime.date.today)),
|
|
('heure_debut', models.TimeField(blank=True, null=True)),
|
|
('heure_fin', models.TimeField(blank=True, null=True)),
|
|
('lieu', models.CharField(blank=True, max_length=200)),
|
|
('description', models.TextField(blank=True)),
|
|
],
|
|
),
|
|
migrations.CreateModel(
|
|
name='Illustration',
|
|
fields=[
|
|
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
|
('nom', models.CharField(max_length=200)),
|
|
('image', models.ImageField(upload_to='timeline')),
|
|
('evenement', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='timeline.Evenement')),
|
|
],
|
|
),
|
|
migrations.DeleteModel(
|
|
name='Timeline',
|
|
),
|
|
]
|