mirror of
https://github.com/ZwareBear/awx.git
synced 2026-03-23 09:13:34 -05:00
only hide scm revision for manual projects if the key already exists
see: #5141
This commit is contained in:
@@ -977,7 +977,7 @@ class ProjectSerializer(UnifiedJobTemplateSerializer, ProjectOptionsSerializer):
|
||||
|
||||
def to_representation(self, obj):
|
||||
ret = super(ProjectSerializer, self).to_representation(obj)
|
||||
if obj.scm_type == '':
|
||||
if 'scm_revision' in ret and obj.scm_type == '':
|
||||
ret['scm_revision'] = ''
|
||||
return ret
|
||||
|
||||
|
||||
Reference in New Issue
Block a user