1
0
mirror of https://github.com/ansible/awx.git synced 2024-11-01 08:21:15 +03:00

Merge pull request #4435 from wwitzel3/release_3.1.0

use DjangoJSONEncoder
This commit is contained in:
Wayne Witzel III 2016-12-14 13:13:13 -05:00 committed by GitHub
commit f95f75c55a

View File

@ -6,6 +6,7 @@ from channels import Group
from channels.sessions import channel_session
from django.contrib.auth.models import User
from django.core.serializers.json import DjangoJSONEncoder
from awx.main.models.organization import AuthToken
@ -86,4 +87,4 @@ def ws_receive(message):
def emit_channel_notification(group, payload):
Group(group).send({"text": json.dumps(payload)})
Group(group).send({"text": json.dumps(payload, cls=DjangoJSONEncoder)})