2020-03-30 22:45:11 +00:00
|
|
|
# Generated by Django 3.0.3 on 2020-03-30 22:32
|
2020-03-30 21:12:18 +00:00
|
|
|
|
|
|
|
from django.db import migrations, models
|
|
|
|
import django.db.models.deletion
|
2020-09-21 15:10:37 +00:00
|
|
|
import bookwyrm.utils.fields
|
2020-03-30 21:12:18 +00:00
|
|
|
|
|
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
|
|
|
|
dependencies = [
|
2020-09-21 15:10:37 +00:00
|
|
|
('bookwyrm', '0026_auto_20200330_1456'),
|
2020-03-30 21:12:18 +00:00
|
|
|
]
|
|
|
|
|
|
|
|
operations = [
|
2020-03-30 22:45:11 +00:00
|
|
|
migrations.RemoveField(
|
|
|
|
model_name='book',
|
|
|
|
name='language',
|
|
|
|
),
|
2020-03-30 21:12:18 +00:00
|
|
|
migrations.RemoveField(
|
|
|
|
model_name='book',
|
|
|
|
name='parent_work',
|
|
|
|
),
|
|
|
|
migrations.RemoveField(
|
|
|
|
model_name='book',
|
|
|
|
name='shelves',
|
|
|
|
),
|
2020-03-30 22:45:11 +00:00
|
|
|
migrations.AddField(
|
|
|
|
model_name='book',
|
|
|
|
name='languages',
|
2020-09-21 15:10:37 +00:00
|
|
|
field=bookwyrm.utils.fields.ArrayField(base_field=models.CharField(max_length=255), blank=True, default=list, size=None),
|
2020-03-30 22:45:11 +00:00
|
|
|
),
|
|
|
|
migrations.AddField(
|
|
|
|
model_name='edition',
|
|
|
|
name='default',
|
|
|
|
field=models.BooleanField(default=False),
|
|
|
|
),
|
2020-03-30 21:12:18 +00:00
|
|
|
migrations.AddField(
|
|
|
|
model_name='edition',
|
|
|
|
name='parent_work',
|
2020-09-21 15:10:37 +00:00
|
|
|
field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.PROTECT, to='bookwyrm.Work'),
|
2020-03-30 21:12:18 +00:00
|
|
|
),
|
|
|
|
migrations.AddField(
|
|
|
|
model_name='edition',
|
|
|
|
name='shelves',
|
2020-09-21 15:10:37 +00:00
|
|
|
field=models.ManyToManyField(through='bookwyrm.ShelfBook', to='bookwyrm.Shelf'),
|
2020-03-30 21:12:18 +00:00
|
|
|
),
|
|
|
|
migrations.AlterField(
|
|
|
|
model_name='comment',
|
|
|
|
name='book',
|
2020-09-21 15:10:37 +00:00
|
|
|
field=models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, to='bookwyrm.Edition'),
|
2020-03-30 21:12:18 +00:00
|
|
|
),
|
|
|
|
migrations.AlterField(
|
|
|
|
model_name='notification',
|
|
|
|
name='related_book',
|
2020-09-21 15:10:37 +00:00
|
|
|
field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.PROTECT, to='bookwyrm.Edition'),
|
2020-03-30 21:12:18 +00:00
|
|
|
),
|
|
|
|
migrations.AlterField(
|
|
|
|
model_name='review',
|
|
|
|
name='book',
|
2020-09-21 15:10:37 +00:00
|
|
|
field=models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, to='bookwyrm.Edition'),
|
2020-03-30 21:12:18 +00:00
|
|
|
),
|
|
|
|
migrations.AlterField(
|
|
|
|
model_name='shelf',
|
|
|
|
name='books',
|
2020-09-21 15:10:37 +00:00
|
|
|
field=models.ManyToManyField(through='bookwyrm.ShelfBook', to='bookwyrm.Edition'),
|
2020-03-30 21:12:18 +00:00
|
|
|
),
|
|
|
|
migrations.AlterField(
|
|
|
|
model_name='shelfbook',
|
|
|
|
name='book',
|
2020-09-21 15:10:37 +00:00
|
|
|
field=models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, to='bookwyrm.Edition'),
|
2020-03-30 21:12:18 +00:00
|
|
|
),
|
|
|
|
migrations.AlterField(
|
|
|
|
model_name='status',
|
|
|
|
name='mention_books',
|
2020-09-21 15:10:37 +00:00
|
|
|
field=models.ManyToManyField(related_name='mention_book', to='bookwyrm.Edition'),
|
2020-03-30 21:12:18 +00:00
|
|
|
),
|
|
|
|
migrations.AlterField(
|
|
|
|
model_name='tag',
|
|
|
|
name='book',
|
2020-09-21 15:10:37 +00:00
|
|
|
field=models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, to='bookwyrm.Edition'),
|
2020-03-30 21:12:18 +00:00
|
|
|
),
|
|
|
|
]
|