

def get_learn_methods(self, obj):
    learn_method_objects = VersionGroupMoveLearnMethod.objects.filter(version_group=obj)
    learn_method_data = VersionGroupMoveLearnMethodSerializer(learn_method_objects, many=True, context=self.context).data
    methods = []
    for method in learn_method_data:
        methods.append(method['move_learn_method'])
    return methods

dataset/ETHPy150Open phalt/pokeapi/pokemon_v2/serializers.py VersionGroupDetailSerializer.get_learn_methods/original