kpsul/clubs/migrations/0001_initial.py
Martin Pépin 380e38519b
New app: clubs
- Clubs will be used both by the cof and the bds app.
- For now, they are only visible in development.
2019-10-16 19:58:12 +02:00

46 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",
),
),
],
)
]