From 15e4478eabb8ef6ae39a04469a55719eea07c10b Mon Sep 17 00:00:00 2001
From: Erwan Rouchet <rouchet@teklia.com>
Date: Thu, 5 Dec 2024 17:54:49 +0100
Subject: [PATCH] Mark template_id as read-only on UpdateProcess

---
 arkindex/process/serializers/imports.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arkindex/process/serializers/imports.py b/arkindex/process/serializers/imports.py
index a8e08198d2..71bdbf729f 100644
--- a/arkindex/process/serializers/imports.py
+++ b/arkindex/process/serializers/imports.py
@@ -117,7 +117,7 @@ class ProcessSerializer(ProcessLightSerializer):
     )
 
     template_id = serializers.PrimaryKeyRelatedField(
-        queryset=Process.objects.none(),
+        read_only=True,
         allow_null=True,
         source="template",
         style={"base_template": "input.html"}
-- 
GitLab