Use the context variable 'object' instead of 'resolved_object' to

make sure the document version in the list is being resolved and
not the view's Document or a document signature isntance.

Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com>
This commit is contained in:
Roberto Rosario
2017-04-20 12:28:46 -04:00
parent a6f58a62ee
commit 6060924ee3

View File

@@ -20,7 +20,7 @@ from .settings import setting_zoom_max_level, setting_zoom_min_level
def is_not_current_version(context):
return context['resolved_object'].document.latest_version.timestamp != context['resolved_object'].timestamp
return context['object'].document.latest_version.timestamp != context['object'].timestamp
def is_first_page(context):