Correct the comment in migration file

This commit is contained in:
beeankha 2019-07-24 08:59:32 -04:00
parent 1fe18dc588
commit f7502eed2f

View File

@ -5,9 +5,8 @@ from django.db import migrations
def add_webhook_notification_template_fields(apps, schema_editor):
# loop over all existing webhook notification templates
# and make sure they have the new "http_method", "username"
# and "password" fields
# loop over all existing webhook notification templates and make
# sure they have the new "http_method" field filled in with "POST"
NotificationTemplate = apps.get_model('main', 'notificationtemplate')
webhooks = NotificationTemplate.objects.filter(notification_type='webhook')
for w in webhooks: