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})
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})
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})