paginator = context['paginator']
page_obj = context['page_obj']
page_suffix = context.get('page_suffix', '')
paginator = context['paginator']
page_obj = context['page_obj']
page_suffix = context.get('page_suffix', '')
# Calculate the record range in the current page for display.
records = {'first': 1 + (page_obj.number - 1) * paginator.per_page}
records['last'] = records['first'] + paginator.per_page - 1
# Calculate the record range in the current page for display.
records = {'first': 1 + (page_obj.number - 1) * paginator.per_page}
records['last'] = records['first'] + paginator.per_page - 1