mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-10 19:56:59 +03:00
fix: Remove the _delegate_text
attribute, which is being removed in django 5.0 (#9278)
This commit is contained in:
parent
a2eabfc867
commit
730d216794
|
@ -27,8 +27,8 @@ def smart_repr(value):
|
|||
if isinstance(value, models.Manager):
|
||||
return manager_repr(value)
|
||||
|
||||
if isinstance(value, Promise) and value._delegate_text:
|
||||
value = force_str(value)
|
||||
if isinstance(value, Promise):
|
||||
value = force_str(value, strings_only=True)
|
||||
|
||||
value = repr(value)
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user