def show_review(request, title, results_view): context = construct_query_builder_context( title=title, results_view=results_view, parents=[('Home', 'home'), ('Review Analyzed Rows', 'review_analysis')]) context['submit_on_load'] = True context['custom_filter_types'] = ('inclusion', 'category') context['custom_filter_map'] = { 'inclusion': db_layer.get_all_inclusion_rows(as_filter=True), 'category': db_layer.get_all_category_rows(as_filter=True) } return render(request, 'tj/query_builder.html', context)
def show_results(request, page): inclusions = db_layer.get_all_inclusion_rows() categories = db_layer.get_all_category_rows() return render(request, 'tj/query_results.html', {'page': page, 'inclusions': inclusions, 'categories': categories})