mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-29 13:04:03 +03:00
Remove converting a string in to a string
The `display_value` method returns a text type.
This commit is contained in:
parent
eaf61449a8
commit
5c0a2b79b3
|
@ -148,7 +148,7 @@ class RelatedField(Field):
|
||||||
return OrderedDict([
|
return OrderedDict([
|
||||||
(
|
(
|
||||||
six.text_type(self.to_representation(item)),
|
six.text_type(self.to_representation(item)),
|
||||||
six.text_type(self.display_value(item))
|
self.display_value(item)
|
||||||
)
|
)
|
||||||
for item in queryset
|
for item in queryset
|
||||||
])
|
])
|
||||||
|
|
Loading…
Reference in New Issue
Block a user