Don't call str

This commit is contained in:
Jeffrey A. Clark 2025-02-25 18:02:11 -05:00
parent d8fbcd306d
commit c090585030

View File

@ -1756,7 +1756,7 @@ class ObjectIdRestField(Field):
raise ValidationError('Invalid ObjectId') raise ValidationError('Invalid ObjectId')
def to_representation(self, value): def to_representation(self, value):
return str(value) return value
class JSONField(Field): class JSONField(Field):