Update terminal api

This commit is contained in:
ibuler
2017-10-31 11:34:20 +08:00
parent 30c4fc9514
commit 034f0a02b1
15 changed files with 67 additions and 87 deletions

View File

@@ -25,11 +25,9 @@ class AccessKey(models.Model):
def get_secret(self):
return str(self.secret)
def __unicode__(self):
def __str__(self):
return str(self.id)
__str__ = __unicode__
class PrivateToken(Token):
"""Inherit from auth token, otherwise migration is boring"""