From 2b3f3e2043a372ae2ac75fe262d68f69702a1f52 Mon Sep 17 00:00:00 2001 From: John Westcott IV Date: Fri, 11 Nov 2022 13:32:38 -0500 Subject: [PATCH] Add .as_asgi to the websockets as required by the new library --- awx/main/routing.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/awx/main/routing.py b/awx/main/routing.py index 2818559428..100347f64e 100644 --- a/awx/main/routing.py +++ b/awx/main/routing.py @@ -27,8 +27,8 @@ class AWXProtocolTypeRouter(ProtocolTypeRouter): websocket_urlpatterns = [ - re_path(r'websocket/$', consumers.EventConsumer), - re_path(r'websocket/broadcast/$', consumers.BroadcastConsumer), + re_path(r'websocket/$', consumers.EventConsumer.as_asgi()), + re_path(r'websocket/broadcast/$', consumers.BroadcastConsumer.as_asgi()), ] application = AWXProtocolTypeRouter(