

def update(self, instance, validated_data):
    environments = validated_data.pop('environments', None)
    result = super().update(instance, validated_data)
    if (environments is not None):
        self._save_environments(instance, environments)
    return result

dataset/ETHPy150Open allegro/ralph/src/ralph/assets/api/serializers.py SaveServiceSerializer.update/original