mirror of
https://github.com/lemeow125/DocManagerBackend.git
synced 2025-01-18 17:13:00 +08:00
Update document request serializer to return requester full name
This commit is contained in:
parent
8655a79e8b
commit
14f21bd2a8
1 changed files with 2 additions and 2 deletions
|
@ -82,7 +82,7 @@ class DocumentRequestSerializer(serializers.ModelSerializer):
|
||||||
)
|
)
|
||||||
requester = serializers.SlugRelatedField(
|
requester = serializers.SlugRelatedField(
|
||||||
many=False,
|
many=False,
|
||||||
slug_field="email",
|
slug_field="full_name",
|
||||||
queryset=CustomUser.objects.all(),
|
queryset=CustomUser.objects.all(),
|
||||||
)
|
)
|
||||||
purpose = serializers.CharField(max_length=512)
|
purpose = serializers.CharField(max_length=512)
|
||||||
|
@ -127,7 +127,7 @@ class FullDocumentRequestSerializer(serializers.ModelSerializer):
|
||||||
documents = DocumentRequestUnitWithFileSerializer()
|
documents = DocumentRequestUnitWithFileSerializer()
|
||||||
requester = serializers.SlugRelatedField(
|
requester = serializers.SlugRelatedField(
|
||||||
many=False,
|
many=False,
|
||||||
slug_field="email",
|
slug_field="full_name",
|
||||||
queryset=CustomUser.objects.all(),
|
queryset=CustomUser.objects.all(),
|
||||||
required=False,
|
required=False,
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in a new issue