mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-12-19 14:48:59 +00:00
Fix migration
This commit is contained in:
parent
eb56cced8d
commit
4db8aa85f0
2 changed files with 28 additions and 18 deletions
|
@ -1,18 +0,0 @@
|
||||||
# Generated by Django 3.2 on 2021-05-24 18:03
|
|
||||||
|
|
||||||
from django.db import migrations, models
|
|
||||||
|
|
||||||
|
|
||||||
class Migration(migrations.Migration):
|
|
||||||
|
|
||||||
dependencies = [
|
|
||||||
("bookwyrm", "0075_announcement"),
|
|
||||||
]
|
|
||||||
|
|
||||||
operations = [
|
|
||||||
migrations.AddField(
|
|
||||||
model_name="book",
|
|
||||||
name="preview_image",
|
|
||||||
field=models.ImageField(blank=True, null=True, upload_to="cover_previews/"),
|
|
||||||
),
|
|
||||||
]
|
|
28
bookwyrm/migrations/0076_preview_images.py
Normal file
28
bookwyrm/migrations/0076_preview_images.py
Normal file
|
@ -0,0 +1,28 @@
|
||||||
|
# Generated by Django 3.2 on 2021-05-26 12:55
|
||||||
|
|
||||||
|
from django.db import migrations, models
|
||||||
|
|
||||||
|
|
||||||
|
class Migration(migrations.Migration):
|
||||||
|
|
||||||
|
dependencies = [
|
||||||
|
('bookwyrm', '0075_announcement'),
|
||||||
|
]
|
||||||
|
|
||||||
|
operations = [
|
||||||
|
migrations.AddField(
|
||||||
|
model_name='book',
|
||||||
|
name='preview_image',
|
||||||
|
field=models.ImageField(blank=True, null=True, upload_to='previews/covers/'),
|
||||||
|
),
|
||||||
|
migrations.AddField(
|
||||||
|
model_name='sitesettings',
|
||||||
|
name='preview_image',
|
||||||
|
field=models.ImageField(blank=True, null=True, upload_to='previews/logos/'),
|
||||||
|
),
|
||||||
|
migrations.AddField(
|
||||||
|
model_name='user',
|
||||||
|
name='preview_image',
|
||||||
|
field=models.ImageField(blank=True, null=True, upload_to='previews/avatars/'),
|
||||||
|
),
|
||||||
|
]
|
Loading…
Reference in a new issue