def is_last_page(context):
    return context['resolved_object'].document_version.pages.count() >= context['resolved_object'].page_number
dataset/ETHPy150Open mayan-edms/mayan-edms/mayan/apps/documents/links.py/is_last_page/swapped operands of `>=`