@app.route('/admin/filter/', endpoint='admin_filter_list')
@auth.admin_required
def admin_filter_list():
    (filter_dbs, cursors) = model.Filter.get_dbs(limit=30, prev_cursor=True, order='-photos_count')
    return flask.render_template('filter/filter_list.html', html_class='filter-list', title=u'قائمة الفلاتر', filter_dbs=filter_dbs, next_url=util.generate_next_url(cursors.get('next')), prev_url=util.generate_next_url(cursors.get('prev')), api_url=flask.url_for('api.filter.list'))
@app.route('/admin/filter/', endpoint='admin_filter_list')
@auth.admin_required
def admin_filter_list():
    (filter_dbs, cursors) = model.Filter.get_dbs(limit=30, prev_cursor=True, order='-photos_count')
    return flask.render_template('filter/filter_list.html', html_class='filter-list', title=u'قائمة الفلاتر', filter_dbs=filter_dbs, next_url=util.generate_next_url(cursors.get('next')), prev_url=util.generate_next_url(cursors.get('prev')), api_url=flask.url_for('api.filter.list'))