mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-08-05 04:50:12 +03:00
Python 3 support to convert Token objects to str
__unicode__ method doesn't work on Python 3
This commit is contained in:
parent
5ad22aea60
commit
18c4847922
|
@ -37,3 +37,6 @@ class Token(models.Model):
|
||||||
|
|
||||||
def __unicode__(self):
|
def __unicode__(self):
|
||||||
return self.key
|
return self.key
|
||||||
|
|
||||||
|
def __str__(self):
|
||||||
|
return self.key
|
||||||
|
|
Loading…
Reference in New Issue
Block a user