disable 2 more types of unhelpful act. str. entries

project local_path changed as a secondary save after creation
adding jobs to dependency list (not user facing)
This commit is contained in:
AlanCoding
2017-07-21 07:47:25 -04:00
parent 55ca8d439b
commit a2b98f0a40
2 changed files with 9 additions and 5 deletions

View File

@@ -337,7 +337,9 @@ class Project(UnifiedJobTemplate, ProjectOptions, ResourceMixin):
if self.scm_type and not self.local_path.startswith('_'):
update_fields.append('local_path')
if update_fields:
self.save(update_fields=update_fields)
from awx.main.signals import disable_activity_stream
with disable_activity_stream():
self.save(update_fields=update_fields)
# If we just created a new project with SCM, start the initial update.
if new_instance and self.scm_type and not skip_update:
self.update()