diff --git a/mayan/apps/documents/links.py b/mayan/apps/documents/links.py index 436273eab8..d33002f4d0 100644 --- a/mayan/apps/documents/links.py +++ b/mayan/apps/documents/links.py @@ -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):