Initial set of model, form and API changes to support document versions

This commit is contained in:
Roberto Rosario
2011-12-02 02:51:59 -04:00
parent b38d84f663
commit d83e8b5428
5 changed files with 182 additions and 41 deletions

View File

@@ -35,7 +35,7 @@ def is_first_page(context):
def is_last_page(context):
return context['page'].page_number >= context['page'].document.documentpage_set.count()
return context['page'].page_number >= context['page'].document_version.pages.count()
def is_min_zoom(context):