mirror of
https://github.com/ae-utbm/sith.git
synced 2025-10-08 15:54:41 +00:00
.github
antispam
api
club
com
core
counter
docs
eboutic
election
forum
galaxy
locale
matmat
pedagogy
rootplace
sas
sith
staticfiles
subscription
trombi
migrations
0001_initial.py
0002_trombi_show_profiles.py
0003_trombicomment_is_moderated.py
0004_trombiclubmembership.py
__init__.py
templates
__init__.py
admin.py
models.py
tests.py
urls.py
views.py
.coveragerc
.env.example
.envrc
.gitattributes
.gitignore
.mailmap
.npmrc
.pre-commit-config.yaml
.python-version
CONTRIBUTING.rst
LICENSE
Procfile.service
Procfile.static
README.md
biome.json
conftest.py
manage.py
mkdocs.yml
openapi-csrf.ts
openapi-ts.config.ts
package-lock.json
package.json
pyproject.toml
tsconfig.json
uv.lock
vite.config.mts
52 lines
1.6 KiB
Python
52 lines
1.6 KiB
Python
from __future__ import unicode_literals
|
|
|
|
import django.db.models.deletion
|
|
from django.db import migrations, models
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
dependencies = [("trombi", "0003_trombicomment_is_moderated")]
|
|
|
|
operations = [
|
|
migrations.CreateModel(
|
|
name="TrombiClubMembership",
|
|
fields=[
|
|
(
|
|
"id",
|
|
models.AutoField(
|
|
auto_created=True,
|
|
primary_key=True,
|
|
serialize=False,
|
|
verbose_name="ID",
|
|
),
|
|
),
|
|
(
|
|
"club",
|
|
models.CharField(default="", max_length=32, verbose_name="club"),
|
|
),
|
|
(
|
|
"role",
|
|
models.CharField(default="", max_length=64, verbose_name="role"),
|
|
),
|
|
(
|
|
"start",
|
|
models.CharField(default="", max_length=16, verbose_name="start"),
|
|
),
|
|
(
|
|
"end",
|
|
models.CharField(default="", max_length=16, verbose_name="end"),
|
|
),
|
|
(
|
|
"user",
|
|
models.ForeignKey(
|
|
on_delete=django.db.models.deletion.CASCADE,
|
|
verbose_name="user",
|
|
related_name="memberships",
|
|
to="trombi.TrombiUser",
|
|
),
|
|
),
|
|
],
|
|
options={"ordering": ["id"]},
|
|
)
|
|
]
|