diff --git a/oidc_provider/models.py b/oidc_provider/models.py index 316ff1c..342e633 100644 --- a/oidc_provider/models.py +++ b/oidc_provider/models.py @@ -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__()