Fix channels
This commit is contained in:
parent
717d346321
commit
1dc671430a
@ -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
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user