mirror of
https://github.com/ajurna/cbwebreader.git
synced 2025-12-06 14:17:19 +00:00
fix for error where db cursor closes when looking for usermisc objects by relation.
This commit is contained in:
17
comic/migrations/0028_alter_comicpage_options.py
Normal file
17
comic/migrations/0028_alter_comicpage_options.py
Normal file
@@ -0,0 +1,17 @@
|
|||||||
|
# Generated by Django 3.2.3 on 2021-05-25 08:20
|
||||||
|
|
||||||
|
from django.db import migrations
|
||||||
|
|
||||||
|
|
||||||
|
class Migration(migrations.Migration):
|
||||||
|
|
||||||
|
dependencies = [
|
||||||
|
('comic', '0027_auto_20210506_1356'),
|
||||||
|
]
|
||||||
|
|
||||||
|
operations = [
|
||||||
|
migrations.AlterModelOptions(
|
||||||
|
name='comicpage',
|
||||||
|
options={'ordering': ['index']},
|
||||||
|
),
|
||||||
|
]
|
||||||
@@ -457,6 +457,9 @@ class ComicPage(models.Model):
|
|||||||
page_file_name = models.CharField(max_length=200, unique=False)
|
page_file_name = models.CharField(max_length=200, unique=False)
|
||||||
content_type = models.CharField(max_length=30)
|
content_type = models.CharField(max_length=30)
|
||||||
|
|
||||||
|
class Meta:
|
||||||
|
ordering = ['index']
|
||||||
|
|
||||||
|
|
||||||
class ComicStatus(models.Model):
|
class ComicStatus(models.Model):
|
||||||
user = models.ForeignKey(User, unique=False, null=False, on_delete=models.CASCADE)
|
user = models.ForeignKey(User, unique=False, null=False, on_delete=models.CASCADE)
|
||||||
|
|||||||
Reference in New Issue
Block a user