Revision 5509b599 api/actions.py

b/api/actions.py
253 253
    vm = get_vm(server_id, request.user)
254 254
    net.machines.add(vm)
255 255
    net.save()
256
    vm.save()
256 257
    return HttpResponse(status=202)
257 258

  
258 259
@network_action('remove')
......
272 273
    vm = get_vm(server_id, request.user)
273 274
    net.machines.remove(vm)
274 275
    net.save()
276
    vm.save()
275 277
    return HttpResponse(status=202)

Also available in: Unified diff