@permission_required("core.manage_shop")
def no_vouchers(request, template_name="manage/voucher/no_vouchers.html"):
    if len(VoucherGroup.objects.all()) == 0:
        return render_to_response(template_name, RequestContext(request, {}))
    else:
        return manage_vouchers(request)
Displays that no vouchers exist.
dataset/ETHPy150Open diefenbach/django-lfs/lfs/manage/voucher/views.py/no_vouchers