commit | 509b318de8d23f0caf56049ddbfb22a582944e3f | [log] [tgz] |
---|---|---|
author | Tony Mack <tmack@paris.CS.Princeton.EDU> | Tue Apr 09 12:54:55 2013 -0400 |
committer | Tony Mack <tmack@paris.CS.Princeton.EDU> | Tue Apr 09 12:54:55 2013 -0400 |
tree | f1ae47f816705879bac64f1c680412ed554ed704 | |
parent | 46262d54484b4745f9fb43fe2f9993aca75e9b4c [diff] [blame] |
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