From 217fd383b3a27cb64ecd60bf63bab5b7b7d48a00 Mon Sep 17 00:00:00 2001 From: Chris Church Date: Fri, 5 Feb 2016 04:09:17 -0500 Subject: [PATCH] Don't show playbooks under project detail. Fixes #792. --- awx/api/serializers.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/awx/api/serializers.py b/awx/api/serializers.py index f655b35f4e..6a8e2c8b6f 100644 --- a/awx/api/serializers.py +++ b/awx/api/serializers.py @@ -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',)