@never_cache
def top_requesters(request, tab=None):
    """Crud handles the table rendering."""
    try:
        tab = int(tab)
    except Exception:
        pass
    if ToprequestersReport.values not in tab:
        messages.warning(request, 'Unknown report type: {0}'.format(tab))
        return redirect('graphs_top_requesters',
                        tab=ToprequestersReport.values[0])
    ctx = {
        'title': 'Top-1000 Recent Requesters',
        'tab_enum': ToprequestersReport.display_names,
        'active_tab': tab,
        'report_meta': ToprequestersReport.get_report_meta(tab),
    }
    return direct_to_template(request, 'toprequesters/crud.html', ctx)
dataset/ETHPy150Open ipeirotis/Mturk-Tracker/app/mturk/toprequesters/views.py/top_requesters/swapped operands of `not in`