Merge pull request #1531 from rooftopcellist/application_description

add description to app serializer
This commit is contained in:
Christian Adams 2018-03-12 17:19:54 -04:00 committed by GitHub
commit f995b99af6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -979,11 +979,13 @@ class UserAuthorizedTokenSerializer(BaseSerializer):
class OAuth2ApplicationSerializer(BaseSerializer):
show_capabilities = ['edit', 'delete']
class Meta:
model = OAuth2Application
fields = (
'*', '-description', 'user', 'client_id', 'client_secret', 'client_type',
'*', 'description', 'user', 'client_id', 'client_secret', 'client_type',
'redirect_uris', 'authorization_grant_type', 'skip_authorization',
)
read_only_fields = ('client_id', 'client_secret')