Merge pull request #53 from nmohoric/master

Fix incorrect mixture of %s and format in models.py
This commit is contained in:
Juan Ignacio Fiorentino 2015-11-02 16:48:56 -03:00
commit 589b389445

View file

@ -22,7 +22,7 @@ class Client(models.Model):
_redirect_uris = models.TextField(default='')
def __str__(self):
return u'%s'.format(self.name)
return u'{0}'.format(self.name)
def __unicode__(self):
return self.__str__()
@ -59,7 +59,7 @@ class BaseCodeTokenModel(models.Model):
return timezone.now() >= self.expires_at
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):
return self.__str__()