Commit 77caa3dd by Chif Gergő

Fix renew call

parent 7196c9a3
......@@ -155,7 +155,7 @@ class InstanceViewSet(AuthorizationMixin, ViewSet):
@action(detail=True, methods=["POST"])
def renew_lease(self, request, pk):
instance = self.get_object(pk)
instance.renew_lease()
instance.renew()
return Response(status=status.HTTP_200_OK)
@action(detail=True, methods=["POST"])
......
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 sign in to comment