2017-06-12 21:52:59 +00:00
|
|
|
# -*- coding: utf-8 -*-
|
|
|
|
from __future__ import unicode_literals
|
|
|
|
|
|
|
|
from django.db import migrations, models
|
2019-10-05 22:32:54 +00:00
|
|
|
import django.db.models.deletion
|
2017-06-12 21:52:59 +00:00
|
|
|
|
|
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
|
2018-10-04 19:29:19 +00:00
|
|
|
dependencies = [("trombi", "0003_trombicomment_is_moderated")]
|
2017-06-12 21:52:59 +00:00
|
|
|
|
|
|
|
operations = [
|
|
|
|
migrations.CreateModel(
|
2018-10-04 19:29:19 +00:00
|
|
|
name="TrombiClubMembership",
|
2017-06-12 21:52:59 +00:00
|
|
|
fields=[
|
2018-10-04 19:29:19 +00:00
|
|
|
(
|
|
|
|
"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(
|
2019-10-05 22:32:54 +00:00
|
|
|
on_delete=django.db.models.deletion.CASCADE,
|
2018-10-04 19:29:19 +00:00
|
|
|
verbose_name="user",
|
|
|
|
related_name="memberships",
|
|
|
|
to="trombi.TrombiUser",
|
|
|
|
),
|
|
|
|
),
|
2017-06-12 21:52:59 +00:00
|
|
|
],
|
2018-10-04 19:29:19 +00:00
|
|
|
options={"ordering": ["id"]},
|
|
|
|
)
|
2017-06-12 21:52:59 +00:00
|
|
|
]
|