Example #1
0
def generate_error(request):
    form = GenerateErrorForm(request.POST or None)
    if request.method == "POST" and form.is_valid():
        form.explode()
    return jingo.render(request, "zadmin/generate-error.html", {"form": form})
Example #2
0
def generate_error(request):
    form = GenerateErrorForm(request.POST or None)
    if request.method == 'POST' and form.is_valid():
        form.explode()
    return jingo.render(request, 'zadmin/generate-error.html', {'form': form})
Example #3
0
def generate_error(request):
    form = GenerateErrorForm(request.POST or None)
    if request.method == 'POST' and form.is_valid():
        form.explode()
    return jingo.render(request, 'zadmin/generate-error.html', {'form': form})