@permission_required("core.manage_shop")
@require_POST
def delete_vouchers(request, group_id):
    voucher_group = VoucherGroup.objects.get(pk=group_id)
    vouchers = Voucher.objects.filter(pk__in=request.POST.getlist("voucher-ids"))

    for voucher in vouchers:
        voucher.delete()

    return render_to_ajax_response(
        (("#vouchers", vouchers_tab(request, voucher_group, deleted=True)), ),
        _(u"Vouchers have been deleted."))
Deletes checked vouchers.
dataset/ETHPy150Open diefenbach/django-lfs/lfs/manage/voucher/views.py/delete_vouchers