2016-08-24 20:09:23 +00:00
|
|
|
from __future__ import unicode_literals
|
|
|
|
|
2019-10-05 22:32:54 +00:00
|
|
|
import django.db.models.deletion
|
2024-06-24 11:07:36 +00:00
|
|
|
from django.conf import settings
|
|
|
|
from django.db import migrations, models
|
2016-08-24 20:09:23 +00:00
|
|
|
|
|
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
dependencies = [
|
|
|
|
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
|
2018-10-04 19:29:19 +00:00
|
|
|
("club", "0001_initial"),
|
|
|
|
("core", "0001_initial"),
|
2016-08-24 20:09:23 +00:00
|
|
|
]
|
|
|
|
|
|
|
|
operations = [
|
|
|
|
migrations.AddField(
|
2018-10-04 19:29:19 +00:00
|
|
|
model_name="membership",
|
|
|
|
name="user",
|
|
|
|
field=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",
|
|
|
|
to=settings.AUTH_USER_MODEL,
|
|
|
|
related_name="membership",
|
|
|
|
),
|
2016-08-24 20:09:23 +00:00
|
|
|
),
|
|
|
|
migrations.AddField(
|
2018-10-04 19:29:19 +00:00
|
|
|
model_name="club",
|
|
|
|
name="edit_groups",
|
|
|
|
field=models.ManyToManyField(
|
|
|
|
to="core.Group", blank=True, related_name="editable_club"
|
|
|
|
),
|
2016-08-24 20:09:23 +00:00
|
|
|
),
|
|
|
|
migrations.AddField(
|
2018-10-04 19:29:19 +00:00
|
|
|
model_name="club",
|
|
|
|
name="home",
|
|
|
|
field=models.OneToOneField(
|
2019-10-05 22:38:25 +00:00
|
|
|
on_delete=django.db.models.deletion.CASCADE,
|
2018-10-04 19:29:19 +00:00
|
|
|
blank=True,
|
|
|
|
null=True,
|
|
|
|
related_name="home_of_club",
|
|
|
|
verbose_name="home",
|
|
|
|
to="core.SithFile",
|
|
|
|
),
|
2016-08-24 20:09:23 +00:00
|
|
|
),
|
|
|
|
migrations.AddField(
|
2018-10-04 19:29:19 +00:00
|
|
|
model_name="club",
|
|
|
|
name="owner_group",
|
|
|
|
field=models.ForeignKey(
|
2019-10-05 22:32:54 +00:00
|
|
|
on_delete=django.db.models.deletion.CASCADE,
|
|
|
|
default=1,
|
|
|
|
to="core.Group",
|
|
|
|
related_name="owned_club",
|
2018-10-04 19:29:19 +00:00
|
|
|
),
|
2016-08-24 20:09:23 +00:00
|
|
|
),
|
|
|
|
migrations.AddField(
|
2018-10-04 19:29:19 +00:00
|
|
|
model_name="club",
|
|
|
|
name="parent",
|
|
|
|
field=models.ForeignKey(
|
2019-10-05 22:32:54 +00:00
|
|
|
on_delete=django.db.models.deletion.CASCADE,
|
|
|
|
null=True,
|
|
|
|
to="club.Club",
|
|
|
|
related_name="children",
|
|
|
|
blank=True,
|
2018-10-04 19:29:19 +00:00
|
|
|
),
|
2016-08-24 20:09:23 +00:00
|
|
|
),
|
|
|
|
migrations.AddField(
|
2018-10-04 19:29:19 +00:00
|
|
|
model_name="club",
|
|
|
|
name="view_groups",
|
|
|
|
field=models.ManyToManyField(
|
|
|
|
to="core.Group", blank=True, related_name="viewable_club"
|
|
|
|
),
|
2016-08-24 20:09:23 +00:00
|
|
|
),
|
|
|
|
]
|