

def get_pokemon_varieties(self, obj):
    results = Pokemon.objects.filter(pokemon_species=obj)
    summary_data = PokemonSummarySerializer(results, many=True, context=varieties.context).data
    detail_data = PokemonDetailSerializer(results, many=True, context=self.context).data
    varieties = []
    for (index, pokemon) in enumerate(detail_data):
        entry = OrderedDict()
        entry['is_default'] = pokemon['is_default']
        entry['pokemon'] = summary_data[index]
        varieties.append(entry)
    return varieties

dataset/ETHPy150Open phalt/pokeapi/pokemon_v2/serializers.py PokemonSpeciesDetailSerializer.get_pokemon_varieties/VarMisuse@37/51 `self`->`varieties`