mirror of
https://github.com/ajurna/cbwebreader.git
synced 2025-12-06 06:17:17 +00:00
Rewrite of Comic lists so that tehy have thumbnails. (#26)
This commit is contained in:
19
comic/migrations/0022_comicbook_thumbnail.py
Normal file
19
comic/migrations/0022_comicbook_thumbnail.py
Normal file
@@ -0,0 +1,19 @@
|
||||
# Generated by Django 3.2 on 2021-04-21 11:13
|
||||
|
||||
from django.db import migrations
|
||||
import imagekit.models.fields
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('comic', '0021_delete_setting'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AddField(
|
||||
model_name='comicbook',
|
||||
name='thumbnail',
|
||||
field=imagekit.models.fields.ProcessedImageField(null=True, upload_to='thumbs'),
|
||||
),
|
||||
]
|
||||
19
comic/migrations/0023_directory_thumbnail.py
Normal file
19
comic/migrations/0023_directory_thumbnail.py
Normal file
@@ -0,0 +1,19 @@
|
||||
# Generated by Django 3.2 on 2021-04-21 17:44
|
||||
|
||||
from django.db import migrations
|
||||
import imagekit.models.fields
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('comic', '0022_comicbook_thumbnail'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AddField(
|
||||
model_name='directory',
|
||||
name='thumbnail',
|
||||
field=imagekit.models.fields.ProcessedImageField(null=True, upload_to='thumbs'),
|
||||
),
|
||||
]
|
||||
29
comic/migrations/0024_auto_20210422_0855.py
Normal file
29
comic/migrations/0024_auto_20210422_0855.py
Normal file
@@ -0,0 +1,29 @@
|
||||
# Generated by Django 3.2 on 2021-04-22 07:55
|
||||
|
||||
from django.db import migrations, models
|
||||
import django.db.models.deletion
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('comic', '0023_directory_thumbnail'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AddField(
|
||||
model_name='comicbook',
|
||||
name='thumbnail_index',
|
||||
field=models.PositiveIntegerField(default=0),
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='directory',
|
||||
name='thumbnail_index',
|
||||
field=models.PositiveIntegerField(default=0),
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='directory',
|
||||
name='thumbnail_issue',
|
||||
field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='directory_thumbnail_issue', to='comic.comicbook'),
|
||||
),
|
||||
]
|
||||
Reference in New Issue
Block a user