

def get_pokemon_abilities(self, obj):
    pokemon_ability_objects = PokemonAbility.objects.filter(pokemon=obj)
    data = PokemonAbilitySerializer(ability, many=True, context=self.context).data
    abilities = []
    for ability in data:
        del ability['pokemon']
        abilities.append(ability)
    return abilities

dataset/ETHPy150Open phalt/pokeapi/pokemon_v2/serializers.py PokemonDetailSerializer.get_pokemon_abilities/VarMisuse@29/45 `pokemon_ability_objects`->`ability`