

def get_effect_text(self, obj):
    effect_texts = MoveEffectEffectText.objects.filter(move_effect=obj.move_effect)
    data = MoveEffectEffectTextSerializer(effect_texts, many=True, context=self.context).data
    return data

dataset/ETHPy150Open phalt/pokeapi/pokemon_v2/serializers.py MoveDetailSerializer.get_effect_text/original