From 1bfca6e1a5d82a46bb2feb79eec7b698720ff805 Mon Sep 17 00:00:00 2001 From: Mohamed-Hacene Date: Fri, 6 Dec 2024 10:49:53 +0100 Subject: [PATCH] chore: use PrimaryKeyRelatedField insteand of SlugRelatedField --- backend/core/serializers.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/backend/core/serializers.py b/backend/core/serializers.py index 5d1602395..e55df2c53 100644 --- a/backend/core/serializers.py +++ b/backend/core/serializers.py @@ -601,9 +601,8 @@ class ComplianceAssessmentWriteSerializer(BaseModelSerializer): required=False, allow_null=True, ) - ebios_rm_studies = serializers.SlugRelatedField( + ebios_rm_studies = serializers.PrimaryKeyRelatedField( many=True, - slug_field="id", queryset=EbiosRMStudy.objects.all(), required=False, allow_null=True,