mirror of
https://github.com/nikdoof/test-auth.git
synced 2025-12-14 14:52:15 +00:00
Force execution of the first query to avoid stupid unoptimized subqueries
This commit is contained in:
@@ -162,7 +162,7 @@ def admin_applications(request):
|
|||||||
|
|
||||||
# Get the list of viewable applications by the admin
|
# Get the list of viewable applications by the admin
|
||||||
corplist = EVEPlayerCharacter.objects.filter(eveaccount__user=request.user).values_list('corporation', flat=True)
|
corplist = EVEPlayerCharacter.objects.filter(eveaccount__user=request.user).values_list('corporation', flat=True)
|
||||||
apps = Application.objects.filter(corporation__id__in=corplist)
|
apps = Application.objects.filter(corporation__id__in=list(corplist))
|
||||||
|
|
||||||
if 'q' in request.GET:
|
if 'q' in request.GET:
|
||||||
query = request.GET['q']
|
query = request.GET['q']
|
||||||
|
|||||||
Reference in New Issue
Block a user