added tests for the comicbook model

fixed bug related to last page link
This commit is contained in:
2015-06-25 12:36:55 +01:00
parent 7f234ce27c
commit 64a590f9ee
10 changed files with 236 additions and 19 deletions

View File

@@ -62,7 +62,7 @@ def read_comic(request, comic_path, page):
book.save()
context = RequestContext(request, {
'book': book,
'orig_file_name': book.pages()[page].name,
'orig_file_name': book.page_name(page),
'nav': book.nav(comic_path, page),
'breadcrumbs': breadcrumbs,
})