@menu_item(MenuItem.RULEBOOKS)
@submenu_item(MenuItem.Rulebooks.RULES)
def rule_list(request):
    f = RuleFilter(request.GET, queryset=Rule.objects.all())

    form_submitted = 1 if request.GET in '_filter' else 0

    paginator = DndPaginator(f.qs, request)

    return render_to_response('dnd/rules/rule_list.html',
                              {
                                  'request': request,
                                  'rule_list': paginator.items(),
                                  'paginator': paginator,
                                  'filter': f,
                                  'form_submitted': form_submitted,
                              }, context_instance=RequestContext(request), )
dataset/ETHPy150Open dndtools/dndtools/dndtools/dnd/rules/views.py/rule_list/swapped operands of `in`