Fix channels

This commit is contained in:
Oskar Hahn 2017-01-13 20:53:06 +01:00
parent 717d346321
commit 1dc671430a
2 changed files with 2 additions and 1 deletions

View File

@ -24,6 +24,7 @@ def ws_add_site(message):
message.channel_session['user_id'] = message.user.id message.channel_session['user_id'] = message.user.id
# Saves the reply channel to the user. Uses 0 for anonymous users. # 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) websocket_user_cache.add(message.user.id or 0, message.reply_channel.name)
message.reply_channel.send({"accept": True})
@channel_session_user @channel_session_user

View File

@ -1,5 +1,5 @@
# Requirements for OpenSlides in production in alphabetical order # Requirements for OpenSlides in production in alphabetical order
channels>=0.17,<1.1 channels>=1.0,<1.1
Django>=1.10.4,<1.11 Django>=1.10.4,<1.11
djangorestframework>=3.4,<3.5 djangorestframework>=3.4,<3.5
jsonfield>=1.0,<1.1 jsonfield>=1.0,<1.1