47 lines
1.3 KiB
Python
47 lines
1.3 KiB
Python
|
# Generated by Django 2.2.6 on 2019-10-06 17:57
|
||
|
|
||
|
from django.conf import settings
|
||
|
from django.db import migrations, models
|
||
|
|
||
|
|
||
|
class Migration(migrations.Migration):
|
||
|
|
||
|
initial = True
|
||
|
|
||
|
dependencies = [migrations.swappable_dependency(settings.AUTH_USER_MODEL)]
|
||
|
|
||
|
operations = [
|
||
|
migrations.CreateModel(
|
||
|
name="Club",
|
||
|
fields=[
|
||
|
(
|
||
|
"id",
|
||
|
models.AutoField(
|
||
|
auto_created=True,
|
||
|
primary_key=True,
|
||
|
serialize=False,
|
||
|
verbose_name="ID",
|
||
|
),
|
||
|
),
|
||
|
(
|
||
|
"name",
|
||
|
models.CharField(
|
||
|
max_length=1000, unique=True, verbose_name="nom du club"
|
||
|
),
|
||
|
),
|
||
|
(
|
||
|
"description",
|
||
|
models.TextField(blank=True, verbose_name="description"),
|
||
|
),
|
||
|
(
|
||
|
"respos",
|
||
|
models.ManyToManyField(
|
||
|
blank=True,
|
||
|
to=settings.AUTH_USER_MODEL,
|
||
|
verbose_name="responsables du club",
|
||
|
),
|
||
|
),
|
||
|
],
|
||
|
)
|
||
|
]
|