@permission_required("core.manage_shop")
def products_tab(request, discount_id, template_name="manage/discounts/products.html"):
    discount = Discount.objects.get(pk=discount_id)
    inline = products_inline(request, discount_id, as_string=True)

    return render_to_string(template_name, RequestContext(request, {
        "discount": discount,
        "products_inline": inline,
    }))
Hash function that is able to compute hashes for lists and dictionaries.
dataset/ETHPy150Open diefenbach/django-lfs/lfs/manage/discounts/views.py/products_tab--crossover with--dataset/ETHPy150Open MirantisWorkloadMobility/CloudFerry/cloudferry/lib/utils/bases.py/compute_hash