def reset_filter(request, category_slug, property_group_id, property_id):
    if "product-filter" in request.session:
        key = '{0}_{1}'.format(property_group_id, property_id)
        select_filter = request.session["product-filter"].get('select-filter', {})
        if key in select_filter:
            del select_filter[key]
            request.session["product-filter"] = request.session["product-filter"]

    url = reverse("lfs_category", kwargs={"slug": category_slug})
    return HttpResponseRedirect(url)
Commit the current transaction
dataset/ETHPy150Open diefenbach/django-lfs/lfs/catalog/views.py/reset_filter--crossover with--dataset/ETHPy150Open gmr/rabbitpy/rabbitpy/amqp.py/AMQP.tx_commit