Skip to content

Commit

Permalink
ExternalIDSerializerField to be UUID Field instead of Field (#1958)
Browse files Browse the repository at this point in the history
  • Loading branch information
rithviknishad authored Mar 17, 2024
1 parent 257abe6 commit 114c643
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion care/utils/serializer/external_id_field.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 114c643

Please sign in to comment.