@viewer.view('pages_list')
@login_required
def pages_list(page=1):
    p_order = Page.pubdate.desc()
    pages = db_session.query(Page).filter(
        Page.user_id==session['user_id']).order_by(Page.pubdate.desc())
    paginator = Paginator(pages, app.config['ENTRIES_PER_PAGE'], page,
                          'pages_list')
    return viewer.render('pages_list.html', pages=pages, paginator=paginator)
Paginated view of all pages
dataset/ETHPy150Open jkossen/imposter/admin.py/pages_list