fix bugs
diff --git a/plstackapi/planetstack/api/sites.py b/plstackapi/planetstack/api/sites.py
index cbdc136..b9899a7 100644
--- a/plstackapi/planetstack/api/sites.py
+++ b/plstackapi/planetstack/api/sites.py
@@ -15,9 +15,9 @@
     site.save()
     return site
 
-def update_site(auth, login_base, **fields):
+def update_site(auth, id, **fields):
     driver = OpenStackDriver(client = auth_check(auth))
-    sites = Site.objects.filter(login_base=login_base)
+    sites = Site.objects.filter(id=id)
     if not sites:
         return
 
diff --git a/plstackapi/planetstack/views/sites.py b/plstackapi/planetstack/views/sites.py
index 8bbd30c..e003938 100644
--- a/plstackapi/planetstack/views/sites.py
+++ b/plstackapi/planetstack/views/sites.py
@@ -37,7 +37,7 @@
         data = parse_request(request.DATA)
         if 'auth' not in data:
             return Response(status=status.HTTP_400_BAD_REQUEST)
-        sites = get_sites(data['auth'], {'login_base': pk})
+        sites = get_sites(data['auth'], {'id': pk})
         if not sites:
             return Response(status=status.HTTP_404_NOT_FOUND)
         serializer = SiteSerializer(sites[0])
@@ -59,7 +59,7 @@
         data = parse_request(request.DATA) 
         if 'auth' not in data:
             return Response(status=status.HTTP_400_BAD_REQUEST)
-        delete_site(data['auth'], {'login_base': pk})
+        delete_site(data['auth'], {'id': pk})
         return Response(status=status.HTTP_204_NO_CONTENT)