From f3b16451fd8d4aefd552698b2bc81e42b9a27793 Mon Sep 17 00:00:00 2001 From: Keannu Bernasol Date: Wed, 18 Dec 2024 20:32:04 +0800 Subject: [PATCH] Fix serializer slug for requester in document request --- docmanager_backend/document_requests/serializers.py | 6 ------ 1 file changed, 6 deletions(-) diff --git a/docmanager_backend/document_requests/serializers.py b/docmanager_backend/document_requests/serializers.py index f9760f5..4e4a400 100644 --- a/docmanager_backend/document_requests/serializers.py +++ b/docmanager_backend/document_requests/serializers.py @@ -81,12 +81,6 @@ class DocumentRequestSerializer(serializers.ModelSerializer): queryset=CustomUser.objects.all(), required=False, ) - requester = serializers.SlugRelatedField( - many=False, - slug_field="id", - queryset=CustomUser.objects.all(), - required=False, - ) purpose = serializers.CharField(max_length=512) date_requested = serializers.DateTimeField( format="%m-%d-%Y %I:%M %p", read_only=True