Correct longstanding issues with the EVEAccount object regarding its primary key

This commit is contained in:
2011-05-19 16:00:27 +01:00
parent 1533d937f4
commit d1afc15fc0
8 changed files with 177 additions and 15 deletions

View File

@@ -70,7 +70,7 @@ class V2EveAPIProxyHandler(BaseHandler):
try:
userid = request.GET.get('userid', None)
obj = EVEAccount.objects.get(api_user_id=userid)
obj = EVEAccount.objects.get(pk=userid)
params['apikey'] = obj.api_key
except EVEAccount.DoesNotExist:
pass