mirror of
https://github.com/ajurna/cbwebreader.git
synced 2025-12-06 22:27:19 +00:00
43 lines
1.2 KiB
Python
43 lines
1.2 KiB
Python
# -*- coding: utf-8 -*-
|
|
from __future__ import unicode_literals
|
|
|
|
from django.db import models, migrations
|
|
from django.conf import settings
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
dependencies = [
|
|
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
|
|
('comic', '0004_comicbook_unread'),
|
|
]
|
|
|
|
operations = [
|
|
migrations.CreateModel(
|
|
name='ComicStatus',
|
|
fields=[
|
|
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
|
|
('last_read_page', models.IntegerField()),
|
|
('unread', models.BooleanField()),
|
|
],
|
|
),
|
|
migrations.RemoveField(
|
|
model_name='comicbook',
|
|
name='last_read_page',
|
|
),
|
|
migrations.RemoveField(
|
|
model_name='comicbook',
|
|
name='unread',
|
|
),
|
|
migrations.AddField(
|
|
model_name='comicstatus',
|
|
name='comic',
|
|
field=models.ForeignKey(to='comic.ComicBook'),
|
|
),
|
|
migrations.AddField(
|
|
model_name='comicstatus',
|
|
name='user',
|
|
field=models.ForeignKey(to=settings.AUTH_USER_MODEL),
|
|
),
|
|
]
|