Python 3 support to convert Token objects to str

__unicode__ method doesn't work on Python 3
This commit is contained in:
Matías Lang 2014-12-02 16:27:52 -03:00
parent 5ad22aea60
commit 18c4847922

View File

@ -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