Merge pull request #53 from nmohoric/master
Fix incorrect mixture of %s and format in models.py
This commit is contained in:
commit
589b389445
1 changed files with 2 additions and 2 deletions
|
@ -22,7 +22,7 @@ class Client(models.Model):
|
||||||
_redirect_uris = models.TextField(default='')
|
_redirect_uris = models.TextField(default='')
|
||||||
|
|
||||||
def __str__(self):
|
def __str__(self):
|
||||||
return u'%s'.format(self.name)
|
return u'{0}'.format(self.name)
|
||||||
|
|
||||||
def __unicode__(self):
|
def __unicode__(self):
|
||||||
return self.__str__()
|
return self.__str__()
|
||||||
|
@ -59,7 +59,7 @@ class BaseCodeTokenModel(models.Model):
|
||||||
return timezone.now() >= self.expires_at
|
return timezone.now() >= self.expires_at
|
||||||
|
|
||||||
def __str__(self):
|
def __str__(self):
|
||||||
return u'%s - %s (%s)'.format(self.client, self.user.email, self.expires_at)
|
return u'{0} - {1} ({2})'.format(self.client, self.user.email, self.expires_at)
|
||||||
|
|
||||||
def __unicode__(self):
|
def __unicode__(self):
|
||||||
return self.__str__()
|
return self.__str__()
|
||||||
|
|
Loading…
Reference in a new issue