Reformat some files using black.

This commit is contained in:
Tom Hacohen
2020-12-01 12:45:23 +02:00
parent 7513b058ba
commit c790b5f489
17 changed files with 125 additions and 32 deletions

View File

@@ -33,7 +33,9 @@ class Migration(migrations.Migration):
("version", models.PositiveSmallIntegerField()),
("owner", models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)),
],
options={"unique_together": {("uid", "owner")},},
options={
"unique_together": {("uid", "owner")},
},
),
migrations.CreateModel(
name="CollectionItem",
@@ -61,7 +63,9 @@ class Migration(migrations.Migration):
),
),
],
options={"unique_together": {("uid", "collection")},},
options={
"unique_together": {("uid", "collection")},
},
),
migrations.CreateModel(
name="CollectionItemChunk",
@@ -122,7 +126,9 @@ class Migration(migrations.Migration):
),
),
],
options={"unique_together": {("item", "current")},},
options={
"unique_together": {("item", "current")},
},
),
migrations.CreateModel(
name="RevisionChunkRelation",
@@ -145,7 +151,9 @@ class Migration(migrations.Migration):
),
),
],
options={"ordering": ("id",),},
options={
"ordering": ("id",),
},
),
migrations.CreateModel(
name="CollectionMember",
@@ -170,6 +178,8 @@ class Migration(migrations.Migration):
),
("user", models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)),
],
options={"unique_together": {("user", "collection")},},
options={
"unique_together": {("user", "collection")},
},
),
]

View File

@@ -54,6 +54,8 @@ class Migration(migrations.Migration):
),
),
],
options={"unique_together": {("user", "fromMember")},},
options={
"unique_together": {("user", "fromMember")},
},
),
]

View File

@@ -11,6 +11,8 @@ class Migration(migrations.Migration):
operations = [
migrations.AddField(
model_name="collectioninvitation", name="version", field=models.PositiveSmallIntegerField(default=1),
model_name="collectioninvitation",
name="version",
field=models.PositiveSmallIntegerField(default=1),
),
]

View File

@@ -10,5 +10,9 @@ class Migration(migrations.Migration):
]
operations = [
migrations.RenameField(model_name="userinfo", old_name="pubkey", new_name="loginPubkey",),
migrations.RenameField(
model_name="userinfo",
old_name="pubkey",
new_name="loginPubkey",
),
]

View File

@@ -33,6 +33,8 @@ class Migration(migrations.Migration):
),
("user", models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)),
],
options={"unique_together": {("user", "collection")},},
options={
"unique_together": {("user", "collection")},
},
),
]

View File

@@ -10,5 +10,9 @@ class Migration(migrations.Migration):
]
operations = [
migrations.RenameField(model_name="userinfo", old_name="encryptedSeckey", new_name="encryptedContent",),
migrations.RenameField(
model_name="userinfo",
old_name="encryptedSeckey",
new_name="encryptedContent",
),
]

View File

@@ -11,6 +11,8 @@ class Migration(migrations.Migration):
operations = [
migrations.AddField(
model_name="collectionitemrevision", name="salt", field=models.BinaryField(default=b"", editable=True),
model_name="collectionitemrevision",
name="salt",
field=models.BinaryField(default=b"", editable=True),
),
]

View File

@@ -21,7 +21,16 @@ class Migration(migrations.Migration):
to="django_etebase.CollectionItem",
),
),
migrations.AlterUniqueTogether(name="collection", unique_together=set(),),
migrations.RemoveField(model_name="collection", name="uid",),
migrations.RemoveField(model_name="collection", name="version",),
migrations.AlterUniqueTogether(
name="collection",
unique_together=set(),
),
migrations.RemoveField(
model_name="collection",
name="uid",
),
migrations.RemoveField(
model_name="collection",
name="version",
),
]

View File

@@ -10,5 +10,8 @@ class Migration(migrations.Migration):
]
operations = [
migrations.RemoveField(model_name="collectionitemrevision", name="salt",),
migrations.RemoveField(
model_name="collectionitemrevision",
name="salt",
),
]

View File

@@ -10,5 +10,8 @@ class Migration(migrations.Migration):
]
operations = [
migrations.AlterUniqueTogether(name="collectionitemchunk", unique_together={("item", "uid")},),
migrations.AlterUniqueTogether(
name="collectionitemchunk",
unique_together={("item", "uid")},
),
]

View File

@@ -18,6 +18,12 @@ class Migration(migrations.Migration):
on_delete=django.db.models.deletion.CASCADE, related_name="chunks", to="django_etebase.Collection"
),
),
migrations.AlterUniqueTogether(name="collectionitemchunk", unique_together={("collection", "uid")},),
migrations.RemoveField(model_name="collectionitemchunk", name="item",),
migrations.AlterUniqueTogether(
name="collectionitemchunk",
unique_together={("collection", "uid")},
),
migrations.RemoveField(
model_name="collectionitemchunk",
name="item",
),
]

View File

@@ -10,6 +10,14 @@ class Migration(migrations.Migration):
]
operations = [
migrations.RenameField(model_name="collectioninvitation", old_name="accessLevel", new_name="accessLevelOld",),
migrations.RenameField(model_name="collectionmember", old_name="accessLevel", new_name="accessLevelOld",),
migrations.RenameField(
model_name="collectioninvitation",
old_name="accessLevel",
new_name="accessLevelOld",
),
migrations.RenameField(
model_name="collectionmember",
old_name="accessLevel",
new_name="accessLevelOld",
),
]

View File

@@ -10,6 +10,12 @@ class Migration(migrations.Migration):
]
operations = [
migrations.RemoveField(model_name="collectioninvitation", name="accessLevelOld",),
migrations.RemoveField(model_name="collectionmember", name="accessLevelOld",),
migrations.RemoveField(
model_name="collectioninvitation",
name="accessLevelOld",
),
migrations.RemoveField(
model_name="collectionmember",
name="accessLevelOld",
),
]