Commit b3d8d1f6 authored by lukas.burgey's avatar lukas.burgey
Browse files

Fix MultipleObjectsReturned in rest view

parent b9674588
Pipeline #81747 failed with stage
in 1 minute and 50 seconds
......@@ -191,7 +191,7 @@ class DeploymentView(generics.RetrieveUpdateAPIView):
if self.kwargs['type'] == 'service':
try:
service = Service.objects.get(vos__user=self.request.user, id=dep_id)
service = self.request.user.services.get(id=dep_id)
dep, created = ServiceDeployment.objects.get_or_create(
user=self.request.user,
service=service,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment