Remove converting a string in to a string

The `display_value` method returns a text type.
This commit is contained in:
James Beith 2015-08-10 15:33:04 +01:00
parent eaf61449a8
commit 5c0a2b79b3

View File

@ -148,7 +148,7 @@ class RelatedField(Field):
return OrderedDict([
(
six.text_type(self.to_representation(item)),
six.text_type(self.display_value(item))
self.display_value(item)
)
for item in queryset
])