Skip to content

Commit

Permalink
fix a display bug in notification bodies with unicode characters
Browse files Browse the repository at this point in the history
see: #7400
  • Loading branch information
ryanpetrello committed Oct 2, 2020
1 parent 1792b13 commit 46c6723
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion awx/main/models/notifications.py
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,11 @@ def context(self, serialized_job):
'job': job_context,
'job_friendly_name': self.get_notification_friendly_name(),
'url': self.get_ui_url(),
'job_metadata': json.dumps(self.notification_data(), indent=4)
'job_metadata': json.dumps(
self.notification_data(),
ensure_ascii=False,
indent=4
)
}

def build_context(node, fields, allowed_fields):
Expand Down

0 comments on commit 46c6723

Please sign in to comment.