

def get_required(self, obj):
    evo_objects = PokemonEvolution.objects.filter(gender=obj)
    species_list = []
    for evo in evo_objects:
        species = PokemonSpeciesSummarySerializer(evo.evolved_species, context=self.context).data
        species_list.append(species)
    return species_list

dataset/ETHPy150Open phalt/pokeapi/pokemon_v2/serializers.py GenderDetailSerializer.get_required/original