mirror of
https://github.com/ansible/awx.git
synced 2026-01-17 12:41:19 -03:30
Add Custom Inventory Script to the activity stream from the api side
This commit is contained in:
parent
7df9ca8ae1
commit
017d42364b
@ -55,3 +55,4 @@ activity_stream_registrar.connect(Job)
|
||||
# activity_stream_registrar.connect(JobEvent)
|
||||
#activity_stream_registrar.connect(Profile)
|
||||
activity_stream_registrar.connect(Schedule)
|
||||
activity_stream_registrar.connect(CustomInventoryScript)
|
||||
|
||||
@ -52,6 +52,7 @@ class ActivityStream(models.Model):
|
||||
unified_job_template = models.ManyToManyField("UnifiedJobTemplate", blank=True, related_name='activity_stream_as_unified_job_template+')
|
||||
unified_job = models.ManyToManyField("UnifiedJob", blank=True, related_name='activity_stream_as_unified_job+')
|
||||
schedule = models.ManyToManyField("Schedule", blank=True)
|
||||
custom_inventory_script = models.ManyToManyField("CustomInventoryScript", blank=True)
|
||||
|
||||
def get_absolute_url(self):
|
||||
return reverse('api:activity_stream_detail', args=(self.pk,))
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user