mirror of
https://github.com/ansible/awx.git
synced 2026-01-29 15:24:42 -03:30
Correct the comment in migration file
This commit is contained in:
parent
1fe18dc588
commit
f7502eed2f
@ -5,9 +5,8 @@ from django.db import migrations
|
|||||||
|
|
||||||
|
|
||||||
def add_webhook_notification_template_fields(apps, schema_editor):
|
def add_webhook_notification_template_fields(apps, schema_editor):
|
||||||
# loop over all existing webhook notification templates
|
# loop over all existing webhook notification templates and make
|
||||||
# and make sure they have the new "http_method", "username"
|
# sure they have the new "http_method" field filled in with "POST"
|
||||||
# and "password" fields
|
|
||||||
NotificationTemplate = apps.get_model('main', 'notificationtemplate')
|
NotificationTemplate = apps.get_model('main', 'notificationtemplate')
|
||||||
webhooks = NotificationTemplate.objects.filter(notification_type='webhook')
|
webhooks = NotificationTemplate.objects.filter(notification_type='webhook')
|
||||||
for w in webhooks:
|
for w in webhooks:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user