def license_quicksearch_ajax(request):
    """Returns systems sort table"""
    # Try to get quicksearch from post
    # If fail, try to get from GET
    # return None otherwise
    search = request.GET.get('quicksearch', None)
    if search:
        filters = [Q(**{t % "%s__icontains": search})
                        for t in models.UserLicense.search_fields]

        licenses = models.UserLicense.objects.filter(
                    reduce(operator.or_, filters))
    else:
        licenses = None
    return render_to_response('user_systems/license_quicksearch.html', {
            'licenses': licenses,
           },
           RequestContext(request))
dataset/ETHPy150Open mozilla/inventory/user_systems/views.py/license_quicksearch_ajax/swapped operands of `%`