diff --git a/rest_framework/relations.py b/rest_framework/relations.py index 338776884..9bde79b19 100644 --- a/rest_framework/relations.py +++ b/rest_framework/relations.py @@ -47,12 +47,12 @@ 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 def __getnewargs__(self): - return(str(self), self.name,) + return (str(self), self.name) @property def name(self):