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: