fixed breadcrumbs

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

No files matched your search

+10
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)