From 114c643252f68456551ee9cfcc731b9de307a3f4 Mon Sep 17 00:00:00 2001 From: Rithvik Nishad Date: Sun, 17 Mar 2024 11:11:50 +0530 Subject: [PATCH] ExternalIDSerializerField to be UUID Field instead of Field (#1958) --- care/utils/serializer/external_id_field.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/care/utils/serializer/external_id_field.py b/care/utils/serializer/external_id_field.py index b71718c524..88d711731c 100644 --- a/care/utils/serializer/external_id_field.py +++ b/care/utils/serializer/external_id_field.py @@ -13,7 +13,7 @@ def __call__(self, value): raise serializers.ValidationError("invalid uuid") -class ExternalIdSerializerField(serializers.Field): +class ExternalIdSerializerField(serializers.UUIDField): def __init__(self, queryset=None, *args, **kwargs): super().__init__(*args, **kwargs) self.queryset = queryset