Re-structures link models
This commit is contained in:
@ -1,4 +1,4 @@
|
||||
# Generated by Django 3.2.5 on 2021-12-15 20:38
|
||||
# Generated by Django 3.2.5 on 2021-12-16 00:20
|
||||
|
||||
import bookwyrm.models.activitypub_mixin
|
||||
import bookwyrm.models.fields
|
||||
@ -58,27 +58,19 @@ class Migration(migrations.Migration):
|
||||
),
|
||||
),
|
||||
("filetype", bookwyrm.models.fields.CharField(max_length=5)),
|
||||
(
|
||||
"book",
|
||||
bookwyrm.models.fields.ForeignKey(
|
||||
null=True,
|
||||
on_delete=django.db.models.deletion.CASCADE,
|
||||
related_name="file_links",
|
||||
to="bookwyrm.book",
|
||||
),
|
||||
),
|
||||
],
|
||||
options={
|
||||
"abstract": False,
|
||||
},
|
||||
bases=("bookwyrm.link",),
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name="author",
|
||||
name="links",
|
||||
field=bookwyrm.models.fields.ManyToManyField(to="bookwyrm.Link"),
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name="book",
|
||||
name="links",
|
||||
field=bookwyrm.models.fields.ManyToManyField(to="bookwyrm.Link"),
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name="book",
|
||||
name="file_links",
|
||||
field=bookwyrm.models.fields.ManyToManyField(
|
||||
related_name="editions", to="bookwyrm.FileLink"
|
||||
),
|
||||
),
|
||||
]
|
Reference in New Issue
Block a user