Fix serializer slug for requester in document request

This commit is contained in:
Keannu Bernasol 2024-12-18 20:32:04 +08:00
parent b24646d42d
commit f3b16451fd

View file

@ -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