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:
parent
487276613f
commit
24a383c7c1
@ -2,6 +2,7 @@
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
import awx
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user