Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def del_web_casename(request):
username = request.session.get('user', '')
webcases = Webcase.objects.all()
if request.method == "POST":
webcaseID = request.POST.get("id", )
Webcase.objects.filter(id=webcaseID).delete()
return render(request, "Web_test_robotframework.html", {"user": username, "webcases":webcases})