68 lines
2.1 KiB
Python
68 lines
2.1 KiB
Python
|
# Generated by Django 2.2.6 on 2019-10-05 12:28
|
||
|
|
||
|
from django.db import migrations, models
|
||
|
|
||
|
|
||
|
class Migration(migrations.Migration):
|
||
|
|
||
|
initial = True
|
||
|
|
||
|
dependencies = []
|
||
|
|
||
|
operations = [
|
||
|
migrations.CreateModel(
|
||
|
name="Event",
|
||
|
fields=[
|
||
|
(
|
||
|
"id",
|
||
|
models.AutoField(
|
||
|
auto_created=True,
|
||
|
primary_key=True,
|
||
|
serialize=False,
|
||
|
verbose_name="ID",
|
||
|
),
|
||
|
),
|
||
|
("title", models.CharField(max_length=200, verbose_name="titre")),
|
||
|
("location", models.CharField(max_length=200, verbose_name="lieu")),
|
||
|
(
|
||
|
"start_date",
|
||
|
models.DateTimeField(
|
||
|
blank=True, null=True, verbose_name="date de début"
|
||
|
),
|
||
|
),
|
||
|
(
|
||
|
"end_date",
|
||
|
models.DateTimeField(
|
||
|
blank=True, null=True, verbose_name="date de fin"
|
||
|
),
|
||
|
),
|
||
|
(
|
||
|
"description",
|
||
|
models.TextField(blank=True, verbose_name="description"),
|
||
|
),
|
||
|
(
|
||
|
"image",
|
||
|
models.ImageField(
|
||
|
blank=True,
|
||
|
null=True,
|
||
|
upload_to="imgs/events/",
|
||
|
verbose_name="image",
|
||
|
),
|
||
|
),
|
||
|
(
|
||
|
"registration_open",
|
||
|
models.BooleanField(
|
||
|
default=True, verbose_name="inscriptions ouvertes"
|
||
|
),
|
||
|
),
|
||
|
(
|
||
|
"old",
|
||
|
models.BooleanField(
|
||
|
default=False, verbose_name="archiver (événement fini)"
|
||
|
),
|
||
|
),
|
||
|
],
|
||
|
options={"verbose_name": "événement", "verbose_name_plural": "événements"},
|
||
|
)
|
||
|
]
|