fixed breadcrumbs

moved some code to util.py to clean up views.py
added migration for start of db.
This commit is contained in:
2015-06-17 13:46:02 +01:00
parent fb3e8eae5b
commit 2de1fb9491
8 changed files with 143 additions and 78 deletions

View File

@@ -9,3 +9,13 @@ class Setting(models.Model):
def __str__(self):
return '"%s":"%s"' % (self.name, self.value)
class ComicBook(models.Model):
file_name = models.CharField(max_length=100, unique=True)
last_read_page = models.IntegerField()
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)