mirror of
https://github.com/nikdoof/test-auth.git
synced 2025-12-19 20:59:24 +00:00
Correct longstanding issues with the EVEAccount object regarding its primary key
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user