mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-07-16 11:12:21 +03:00
Don't call str
This commit is contained in:
parent
d8fbcd306d
commit
c090585030
|
@ -1756,7 +1756,7 @@ class ObjectIdRestField(Field):
|
|||
raise ValidationError('Invalid ObjectId')
|
||||
|
||||
def to_representation(self, value):
|
||||
return str(value)
|
||||
return value
|
||||
|
||||
|
||||
class JSONField(Field):
|
||||
|
|
Loading…
Reference in New Issue
Block a user