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:
commit
f95f75c55a
@ -6,6 +6,7 @@ from channels import Group
|
|||||||
from channels.sessions import channel_session
|
from channels.sessions import channel_session
|
||||||
|
|
||||||
from django.contrib.auth.models import User
|
from django.contrib.auth.models import User
|
||||||
|
from django.core.serializers.json import DjangoJSONEncoder
|
||||||
from awx.main.models.organization import AuthToken
|
from awx.main.models.organization import AuthToken
|
||||||
|
|
||||||
|
|
||||||
@ -86,4 +87,4 @@ def ws_receive(message):
|
|||||||
|
|
||||||
|
|
||||||
def emit_channel_notification(group, payload):
|
def emit_channel_notification(group, payload):
|
||||||
Group(group).send({"text": json.dumps(payload)})
|
Group(group).send({"text": json.dumps(payload, cls=DjangoJSONEncoder)})
|
||||||
|
Loading…
Reference in New Issue
Block a user