mirror of
https://github.com/ansible/awx.git
synced 2026-01-17 20:51:21 -03:30
Merge pull request #5029 from AlanCoding/scm_rev_hide
hide scm revision for manual projects
This commit is contained in:
commit
3b5471dbcf
@ -980,6 +980,12 @@ class ProjectSerializer(UnifiedJobTemplateSerializer, ProjectOptionsSerializer):
|
||||
args=(obj.last_update.pk,))
|
||||
return res
|
||||
|
||||
def to_representation(self, obj):
|
||||
ret = super(ProjectSerializer, self).to_representation(obj)
|
||||
if obj.scm_type == '':
|
||||
ret['scm_revision'] = ''
|
||||
return ret
|
||||
|
||||
def validate(self, attrs):
|
||||
organization = None
|
||||
if 'organization' in attrs:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user