

def get_version_groups_pokedexes(self, obj):
    dex_group_objects = PokedexVersionGroup.objects.filter(version_group=self)
    dex_groups = PokedexVersionGroupSerializer(dex_group_objects, many=True, context=self.context).data
    results = []
    for dex_group in dex_groups:
        results.append(dex_group['pokedex'])
    return results

dataset/ETHPy150Open phalt/pokeapi/pokemon_v2/serializers.py VersionGroupDetailSerializer.get_version_groups_pokedexes/VarMisuse@22/36 `obj`->`self`