oauth2: use client_name as unicode value of clients (#22717)
This commit is contained in:
parent
fc6119683b
commit
60d6259023
|
@ -69,6 +69,9 @@ class OAuth2Client(models.Model):
|
|||
def check_redirect_uri(self, redirect_uri):
|
||||
return redirect_uri in self.redirect_uris.strip().split()
|
||||
|
||||
def __unicode__(self):
|
||||
return self.client_name
|
||||
|
||||
|
||||
class OAuth2TempFile(models.Model):
|
||||
hash_key = models.CharField(max_length=128, primary_key=True)
|
||||
|
|
Loading…
Reference in New Issue