mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-02-03 13:14:30 +03:00
Implement __getnewargs__ for #3628
This commit is contained in:
parent
9f74b8860e
commit
44a3d41ce9
|
@ -32,6 +32,9 @@ class Hyperlink(six.text_type):
|
|||
ret.name = name
|
||||
return ret
|
||||
|
||||
def __getnewargs__(self):
|
||||
return(str(self), self.name,)
|
||||
|
||||
is_hyperlink = True
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user