1
0
mirror of https://github.com/ansible/awx.git synced 2024-11-01 08:21:15 +03:00

Don't show playbooks under project detail. Fixes #792.

This commit is contained in:
Chris Church 2016-02-05 04:09:17 -05:00
parent 8b5e8be2e3
commit 217fd383b3

View File

@ -822,7 +822,6 @@ class ProjectOptionsSerializer(BaseSerializer):
class ProjectSerializer(UnifiedJobTemplateSerializer, ProjectOptionsSerializer):
playbooks = serializers.ReadOnlyField(help_text='Array of playbooks available within this project.')
scm_delete_on_next_update = serializers.BooleanField(read_only=True)
status = serializers.ChoiceField(choices=Project.PROJECT_STATUS_CHOICES, read_only=True, required=False)
last_update_failed = serializers.BooleanField(read_only=True)
@ -830,7 +829,7 @@ class ProjectSerializer(UnifiedJobTemplateSerializer, ProjectOptionsSerializer):
class Meta:
model = Project
fields = ('*', 'playbooks', 'scm_delete_on_next_update', 'scm_update_on_launch',
fields = ('*', 'scm_delete_on_next_update', 'scm_update_on_launch',
'scm_update_cache_timeout') + \
('last_update_failed', 'last_updated') # Backwards compatibility
@ -858,6 +857,8 @@ class ProjectSerializer(UnifiedJobTemplateSerializer, ProjectOptionsSerializer):
class ProjectPlaybooksSerializer(ProjectSerializer):
playbooks = serializers.ReadOnlyField(help_text='Array of playbooks available within this project.')
class Meta:
model = Project
fields = ('playbooks',)