1
0
mirror of https://github.com/ansible/awx.git synced 2024-10-30 22:21:13 +03:00

Set default messages (for each message type) to null

This commit is contained in:
Jim Ladd 2019-08-20 23:24:29 -07:00
parent 487276613f
commit 24a383c7c1
2 changed files with 2 additions and 4 deletions

View File

@ -2,6 +2,7 @@
from django.db import migrations, models
import awx
class Migration(migrations.Migration):

View File

@ -73,10 +73,7 @@ class NotificationTemplate(CommonModelNameNotUnique):
notification_configuration = JSONField(blank=False)
def default_messages():
DEFAULT_MSG = "{{ job_friendly_name }} #{{ job.id }} '{{ job.name }}' {{ job.status }}: {{ url }}"
return {'started': { 'message': DEFAULT_MSG, 'body': ''},
'success': { 'message': DEFAULT_MSG, 'body': ''},
'error': { 'message': DEFAULT_MSG, 'body': ''}}
return {'started': None, 'success': None, 'error': None}
messages = JSONField(
null=True,