From 1dc671430ae08311e005b7c81c38c5fa3b447a99 Mon Sep 17 00:00:00 2001 From: Oskar Hahn Date: Fri, 13 Jan 2017 20:53:06 +0100 Subject: [PATCH] Fix channels --- openslides/utils/autoupdate.py | 1 + requirements_production.txt | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/openslides/utils/autoupdate.py b/openslides/utils/autoupdate.py index 9df33d9a7..cf4dfebf0 100644 --- a/openslides/utils/autoupdate.py +++ b/openslides/utils/autoupdate.py @@ -24,6 +24,7 @@ def ws_add_site(message): message.channel_session['user_id'] = message.user.id # Saves the reply channel to the user. Uses 0 for anonymous users. websocket_user_cache.add(message.user.id or 0, message.reply_channel.name) + message.reply_channel.send({"accept": True}) @channel_session_user diff --git a/requirements_production.txt b/requirements_production.txt index 703fa31c8..b09c5ba5c 100644 --- a/requirements_production.txt +++ b/requirements_production.txt @@ -1,5 +1,5 @@ # Requirements for OpenSlides in production in alphabetical order -channels>=0.17,<1.1 +channels>=1.0,<1.1 Django>=1.10.4,<1.11 djangorestframework>=3.4,<3.5 jsonfield>=1.0,<1.1