fix for error where db cursor closes when looking for usermisc objects by relation.

This commit is contained in:
2021-05-25 09:21:04 +01:00
parent 39222118ab
commit 99697f4eab
2 changed files with 20 additions and 0 deletions

View File

@@ -457,6 +457,9 @@ class ComicPage(models.Model):
page_file_name = models.CharField(max_length=200, unique=False)
content_type = models.CharField(max_length=30)
class Meta:
ordering = ['index']
class ComicStatus(models.Model):
user = models.ForeignKey(User, unique=False, null=False, on_delete=models.CASCADE)