@permission_required("core.manage_shop")
def save_shipping_price_criteria(request, shipping_price_id):
    shipping_price = get_object_or_404(ShippingMethodPrice, pk=shipping_price_id)
    shipping_price.save_criteria(request)

    html = [
        ["#price-criteria", shipping_price_criteria(request, shipping_price_id, as_string=True)],
        ["#prices", shipping_method_prices(request, shipping_price.shipping_method.id)],
    ]

    result = json.dumps({
        "html": html,
        "close-dialog": True,
        "message": _(u"Modifications have been saved."),
    }, cls=LazyEncoder)

    return HttpResponse(result, content_type='application/json')
Saves the criteria for the shipping price with given id. The criteria
dataset/ETHPy150Open diefenbach/django-lfs/lfs/manage/shipping_methods/views.py/save_shipping_price_criteria