mirror of
https://github.com/ajurna/cbwebreader.git
synced 2026-11-02 18:46:53 +00:00
added some todo's
This commit is contained in:
1 parent
8fff3d4d9b
commit
6baede6201
2 files changed
+6
No files matched your search
@@ -228,14 +228,19 @@ class ComicBook(models.Model):
|
||||
def page_name(self, index):
|
||||
return ComicPage.objects.get(Comic=self, index=index).page_file_name
|
||||
|
||||
|
||||
class ComicPage(models.Model):
|
||||
Comic = models.ForeignKey(ComicBook)
|
||||
index = models.IntegerField()
|
||||
page_file_name = models.CharField(max_length=100, unique=False)
|
||||
content_type = models.CharField(max_length=30)
|
||||
|
||||
|
||||
class ComicStatus(models.Model):
|
||||
user = models.ForeignKey(User, unique=False, null=False)
|
||||
comic = models.ForeignKey(ComicBook, unique=False, null=False)
|
||||
last_read_page = models.IntegerField(default=0)
|
||||
unread = models.BooleanField(default=True)
|
||||
|
||||
|
||||
# TODO: add support to reference items last being read
|
||||
Reference in new issue
Block a user