mirror of
https://github.com/ansible/awx.git
synced 2026-05-09 18:37:36 -02:30
Set default messages (for each message type) to null
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user