mirror of
https://github.com/lemeow125/DocManagerBackend.git
synced 2025-01-18 17:13:00 +08:00
Fix serializer slug for requester in document request
This commit is contained in:
parent
b24646d42d
commit
f3b16451fd
1 changed files with 0 additions and 6 deletions
|
@ -81,12 +81,6 @@ class DocumentRequestSerializer(serializers.ModelSerializer):
|
||||||
queryset=CustomUser.objects.all(),
|
queryset=CustomUser.objects.all(),
|
||||||
required=False,
|
required=False,
|
||||||
)
|
)
|
||||||
requester = serializers.SlugRelatedField(
|
|
||||||
many=False,
|
|
||||||
slug_field="id",
|
|
||||||
queryset=CustomUser.objects.all(),
|
|
||||||
required=False,
|
|
||||||
)
|
|
||||||
purpose = serializers.CharField(max_length=512)
|
purpose = serializers.CharField(max_length=512)
|
||||||
date_requested = serializers.DateTimeField(
|
date_requested = serializers.DateTimeField(
|
||||||
format="%m-%d-%Y %I:%M %p", read_only=True
|
format="%m-%d-%Y %I:%M %p", read_only=True
|
||||||
|
|
Loading…
Reference in a new issue