mirror of
https://github.com/ae-utbm/sith.git
synced 2024-11-23 06:33:21 +00:00
76 lines
2.2 KiB
Python
76 lines
2.2 KiB
Python
# -*- coding: utf-8 -*-
|
|
from __future__ import unicode_literals
|
|
|
|
from django.db import migrations, models
|
|
from django.conf import settings
|
|
import django.db.models.deletion
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
dependencies = [
|
|
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
|
|
("club", "0001_initial"),
|
|
("core", "0001_initial"),
|
|
]
|
|
|
|
operations = [
|
|
migrations.AddField(
|
|
model_name="membership",
|
|
name="user",
|
|
field=models.ForeignKey(
|
|
on_delete=django.db.models.deletion.CASCADE,
|
|
verbose_name="user",
|
|
to=settings.AUTH_USER_MODEL,
|
|
related_name="membership",
|
|
),
|
|
),
|
|
migrations.AddField(
|
|
model_name="club",
|
|
name="edit_groups",
|
|
field=models.ManyToManyField(
|
|
to="core.Group", blank=True, related_name="editable_club"
|
|
),
|
|
),
|
|
migrations.AddField(
|
|
model_name="club",
|
|
name="home",
|
|
field=models.OneToOneField(
|
|
on_delete=django.db.models.deletion.CASCADE,
|
|
blank=True,
|
|
null=True,
|
|
related_name="home_of_club",
|
|
verbose_name="home",
|
|
to="core.SithFile",
|
|
),
|
|
),
|
|
migrations.AddField(
|
|
model_name="club",
|
|
name="owner_group",
|
|
field=models.ForeignKey(
|
|
on_delete=django.db.models.deletion.CASCADE,
|
|
default=1,
|
|
to="core.Group",
|
|
related_name="owned_club",
|
|
),
|
|
),
|
|
migrations.AddField(
|
|
model_name="club",
|
|
name="parent",
|
|
field=models.ForeignKey(
|
|
on_delete=django.db.models.deletion.CASCADE,
|
|
null=True,
|
|
to="club.Club",
|
|
related_name="children",
|
|
blank=True,
|
|
),
|
|
),
|
|
migrations.AddField(
|
|
model_name="club",
|
|
name="view_groups",
|
|
field=models.ManyToManyField(
|
|
to="core.Group", blank=True, related_name="viewable_club"
|
|
),
|
|
),
|
|
]
|