From 07afaf12d568e53126bb257bc4f4fa54d229612d Mon Sep 17 00:00:00 2001 From: Adarnof Date: Thu, 21 Dec 2017 14:13:16 -0500 Subject: [PATCH] Fix bracket. Thanks @mmolitor87 --- allianceauth/authentication/migrations/0015_user_profiles.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/allianceauth/authentication/migrations/0015_user_profiles.py b/allianceauth/authentication/migrations/0015_user_profiles.py index d1f472c1..fd577a07 100644 --- a/allianceauth/authentication/migrations/0015_user_profiles.py +++ b/allianceauth/authentication/migrations/0015_user_profiles.py @@ -103,7 +103,7 @@ def populate_ownerships(apps, schema_editor): unique_character_owners = [t['character_id'] for t in Token.objects.all().values('character_id').annotate(n=models.Count('user')) if - t['n'] == 1 and EveCharacter.objects.filter(character_id=t['character_id'].exists())] + t['n'] == 1 and EveCharacter.objects.filter(character_id=t['character_id']).exists()] tokens = Token.objects.filter(character_id__in=unique_character_owners) for c_id in unique_character_owners: