adds help-text for scopes

This commit is contained in:
adamscmRH
2018-04-17 14:26:17 -04:00
parent 4e4dabb7f1
commit 50a5a1a9f8
2 changed files with 22 additions and 1 deletions

View File

@@ -109,7 +109,7 @@ class OAuth2AccessToken(AbstractAccessToken):
)
scope = models.TextField(
blank=True,
help_text=_('Allowed scopes, further restricts user\'s permissions.')
help_text=_('Allowed scopes, further restricts user\'s permissions. Must be a simple space-separated string with allowed scopes [\'read\', \'write\'].')
)
def is_valid(self, scopes=None):