diff --git a/rest_framework/relations.py b/rest_framework/relations.py index 1757f32aa..2dc888676 100644 --- a/rest_framework/relations.py +++ b/rest_framework/relations.py @@ -47,7 +47,7 @@ class Hyperlink(str): in some contexts, or render as a plain URL in others. """ def __new__(cls, url, obj): - ret = str.__new__(cls, url) + ret = super().__new__(cls, url) ret.obj = obj return ret