fix NameError
diff --git a/plstackapi/planetstack/api/keys.py b/plstackapi/planetstack/api/keys.py
index 5735a7f..23cd878 100644
--- a/plstackapi/planetstack/api/keys.py
+++ b/plstackapi/planetstack/api/keys.py
@@ -9,7 +9,7 @@
         if isinstance(fields['user'], int):
             users = User.objects.filter(id=fields['user'])
         else:
-            users = Site.objects.filter(email=fields['user'])
+            users = User.objects.filter(email=fields['user'])
         if users:
             user = users[0]
     return user