

def get_encounter_conditions(self, obj):
    condition_values = EncounterConditionValueMap.objects.filter(encounter=obj)
    data = EncounterConditionValueMapSerializer(condition_values, many=True, context=self.context).data
    values = []
    for map in data:
        values.append(map['condition_value'])
    return values

dataset/ETHPy150Open phalt/pokeapi/pokemon_v2/serializers.py EncounterDetailSerializer.get_encounter_conditions/original