2020-05-27 13:03:16 +00:00
|
|
|
# Generated by Django 3.0.3 on 2020-05-27 11:29
|
|
|
|
|
|
|
|
from django.conf import settings
|
|
|
|
from django.db import migrations, models
|
|
|
|
import django.db.models.deletion
|
|
|
|
|
|
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
|
|
|
|
dependencies = [
|
|
|
|
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
|
2020-11-14 15:04:41 +00:00
|
|
|
("django_etebase", "0012_auto_20200527_0743"),
|
2020-05-27 13:03:16 +00:00
|
|
|
]
|
|
|
|
|
|
|
|
operations = [
|
|
|
|
migrations.CreateModel(
|
2020-11-14 15:04:41 +00:00
|
|
|
name="CollectionMemberRemoved",
|
2020-05-27 13:03:16 +00:00
|
|
|
fields=[
|
2020-11-14 15:04:41 +00:00
|
|
|
("id", models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name="ID")),
|
|
|
|
(
|
|
|
|
"collection",
|
|
|
|
models.ForeignKey(
|
|
|
|
on_delete=django.db.models.deletion.CASCADE,
|
|
|
|
related_name="removed_members",
|
|
|
|
to="django_etebase.Collection",
|
|
|
|
),
|
|
|
|
),
|
|
|
|
(
|
|
|
|
"stoken",
|
|
|
|
models.OneToOneField(
|
|
|
|
null=True, on_delete=django.db.models.deletion.PROTECT, to="django_etebase.Stoken"
|
|
|
|
),
|
|
|
|
),
|
|
|
|
("user", models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)),
|
2020-05-27 13:03:16 +00:00
|
|
|
],
|
2020-11-14 15:04:41 +00:00
|
|
|
options={"unique_together": {("user", "collection")},},
|
2020-05-27 13:03:16 +00:00
|
|
|
),
|
|
|
|
]
|