@permission_required("core.manage_shop")
def save_criteria(request, id):
    customer_tax = get_object_or_404(CustomerTax, pk=id)
    customer_tax.save_criteria(request)

    html = [["#criteria", criteria(request, customer_tax)]]

    result = json.dumps({
        "html": html,
        "message": _(u"Criteria have been changed."),
    }, cls=LazyEncoder)

    return HttpResponse(result, content_type='application/json')
Urlize plain text links in the HTML contents.
dataset/ETHPy150Open diefenbach/django-lfs/lfs/manage/customer_tax/views.py/save_criteria--crossover with--dataset/ETHPy150Open slav0nic/djangobb/djangobb_forum/util.py/urlize