fix and clean create view

This commit is contained in:
rmanach 2023-09-18 15:12:42 +02:00
parent 3adbc44cff
commit 46e1f42961

View File

@ -51,7 +51,6 @@ def details(request, deployment_id):
return HttpResponseServerError(e)
return HttpResponseRedirect("/deployment")
deployment = get_object_or_404(Deployment, id=deployment_id)
return render(request, "deployment/details.html", {"deployment": deployment})
@ -66,7 +65,6 @@ def create(request):
except Exception as e:
return HttpResponseServerError(e)
return HttpResponseRedirect("/deployment")
else:
form = DeploymentForm
form = DeploymentForm()
return render(request, "deployment/create.html", {"form": form})