diff --git a/awx/api/templates/api/job_template_launch.md b/awx/api/templates/api/job_template_launch.md index 5fec56ec6c..be5d584cd0 100644 --- a/awx/api/templates/api/job_template_launch.md +++ b/awx/api/templates/api/job_template_launch.md @@ -1,5 +1,5 @@ Launch a Job Template: - +{% ifmeth GET %} Make a GET request to this resource to determine if the job_template can be launched and whether any passwords are required to launch the job_template. The response will include the following fields: @@ -29,8 +29,8 @@ The response will include the following fields: * `inventory_needed_to_start`: Flag indicating the presence of an inventory associated with the job template. If not then one should be supplied when launching the job (boolean, read-only) - -Make a POST request to this resource to launch the job_template. If any +{% endifmeth %} +{% ifmeth POST %}Make a POST request to this resource to launch the job_template. If any passwords, inventory, or extra variables (extra_vars) are required, they must be passed via POST data, with extra_vars given as a YAML or JSON string and escaped parentheses. If the `inventory_needed_to_start` is `True` then the @@ -41,3 +41,4 @@ are not provided, a 400 status code will be returned. If the job cannot be launched, a 405 status code will be returned. If the provided credential or inventory are not allowed to be used by the user, then a 403 status code will be returned. +{% endifmeth %} \ No newline at end of file diff --git a/awx/main/registrar.py b/awx/main/registrar.py index 31133f936b..d13f5b6857 100644 --- a/awx/main/registrar.py +++ b/awx/main/registrar.py @@ -3,6 +3,8 @@ from django.db.models.signals import pre_save, post_save, pre_delete, m2m_changed +from taggit.managers import TaggableManager + class ActivityStreamRegistrar(object): def __init__(self): @@ -19,6 +21,8 @@ class ActivityStreamRegistrar(object): pre_delete.connect(activity_stream_delete, sender=model, dispatch_uid=str(self.__class__) + str(model) + "_delete") for m2mfield in model._meta.many_to_many: + if isinstance(m2mfield, TaggableManager): + continue # Special case for taggit app try: m2m_attr = getattr(model, m2mfield.name) m2m_changed.connect(