def do_paginator(context, page_obj, template_name='gallery/flickr/tags/pagination.html'):
    """
    Simple paginator to shows pages in list with specific template.
    :param context: Base view context.
    :param page_obj: page object.
    :param template_name: template name to render this.
    :return: Context object
    """
    request = context.get('request')

    return {
        'paginator': page_obj.paginator,
        'page_obj': page_obj,
        'request': request,
        'template': template_name
    }