mirror of
https://github.com/ansible/awx.git
synced 2026-02-24 14:36:00 -03:30
Merge pull request #1531 from rooftopcellist/application_description
add description to app serializer
This commit is contained in:
@@ -979,11 +979,13 @@ class UserAuthorizedTokenSerializer(BaseSerializer):
|
|||||||
|
|
||||||
|
|
||||||
class OAuth2ApplicationSerializer(BaseSerializer):
|
class OAuth2ApplicationSerializer(BaseSerializer):
|
||||||
|
|
||||||
|
show_capabilities = ['edit', 'delete']
|
||||||
|
|
||||||
class Meta:
|
class Meta:
|
||||||
model = OAuth2Application
|
model = OAuth2Application
|
||||||
fields = (
|
fields = (
|
||||||
'*', '-description', 'user', 'client_id', 'client_secret', 'client_type',
|
'*', 'description', 'user', 'client_id', 'client_secret', 'client_type',
|
||||||
'redirect_uris', 'authorization_grant_type', 'skip_authorization',
|
'redirect_uris', 'authorization_grant_type', 'skip_authorization',
|
||||||
)
|
)
|
||||||
read_only_fields = ('client_id', 'client_secret')
|
read_only_fields = ('client_id', 'client_secret')
|
||||||
|
|||||||
Reference in New Issue
Block a user