We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
_delegate_text
1 parent a2eabfc commit 730d216Copy full SHA for 730d216
rest_framework/utils/representation.py
@@ -27,8 +27,8 @@ def smart_repr(value):
27
if isinstance(value, models.Manager):
28
return manager_repr(value)
29
30
- if isinstance(value, Promise) and value._delegate_text:
31
- value = force_str(value)
+ if isinstance(value, Promise):
+ value = force_str(value, strings_only=True)
32
33
value = repr(value)
34
0 commit comments