mirror of
https://github.com/ansible/awx.git
synced 2026-05-11 11:27:36 -02:30
Set default messages (for each message type) to null
This commit is contained in:
@@ -2,6 +2,7 @@
|
|||||||
|
|
||||||
from django.db import migrations, models
|
from django.db import migrations, models
|
||||||
|
|
||||||
|
import awx
|
||||||
|
|
||||||
class Migration(migrations.Migration):
|
class Migration(migrations.Migration):
|
||||||
|
|
||||||
|
|||||||
@@ -73,10 +73,7 @@ class NotificationTemplate(CommonModelNameNotUnique):
|
|||||||
notification_configuration = JSONField(blank=False)
|
notification_configuration = JSONField(blank=False)
|
||||||
|
|
||||||
def default_messages():
|
def default_messages():
|
||||||
DEFAULT_MSG = "{{ job_friendly_name }} #{{ job.id }} '{{ job.name }}' {{ job.status }}: {{ url }}"
|
return {'started': None, 'success': None, 'error': None}
|
||||||
return {'started': { 'message': DEFAULT_MSG, 'body': ''},
|
|
||||||
'success': { 'message': DEFAULT_MSG, 'body': ''},
|
|
||||||
'error': { 'message': DEFAULT_MSG, 'body': ''}}
|
|
||||||
|
|
||||||
messages = JSONField(
|
messages = JSONField(
|
||||||
null=True,
|
null=True,
|
||||||
|
|||||||
Reference in New Issue
Block a user