From 172a805215ef1cdcd53e1bb768ae50a48b6ed03d Mon Sep 17 00:00:00 2001 From: Akihiko Horiuchi <12ff5b8@gmail.com> Date: Thu, 21 May 2015 23:48:04 +0900 Subject: [PATCH] Show only UserInstances at instances --- instances/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/instances/views.py b/instances/views.py index 07a2720..4b84f6d 100644 --- a/instances/views.py +++ b/instances/views.py @@ -47,7 +47,7 @@ def instances(request): computes = Compute.objects.all() if not request.user.is_superuser: - user_instances = UserInstance.objects.all() + user_instances = UserInstance.objects.filter(user_id=request.user.id) for usr_inst in user_instances: if connection_manager.host_is_up(usr_inst.instance.compute.type, usr_inst.instance.compute.hostname):