From d1590afdcb364b90500b3aacffaa03bd30200840 Mon Sep 17 00:00:00 2001 From: qwitwa Date: Mon, 12 Sep 2016 11:59:46 +0100 Subject: [PATCH] Fix typo in code in models section (#319) Changed channel_session['room'] inside websockets consumer function to message.channel_session['room'] --- docs/getting-started.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/getting-started.rst b/docs/getting-started.rst index 4bdda26..1927652 100644 --- a/docs/getting-started.rst +++ b/docs/getting-started.rst @@ -595,7 +595,7 @@ have a ChatMessage model with ``message`` and ``room`` fields:: def ws_message(message): # Stick the message onto the processing queue Channel("chat-messages").send({ - "room": channel_session['room'], + "room": message.channel_session['room'], "message": message['text'], })