-
-
Notifications
You must be signed in to change notification settings - Fork 793
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
group_send does not work for a model instance #1594
Comments
Actually I've encountered the same problem, my group doesn't received anything back while using group_send from channel_layer. I haven't seen any changes in docs about this topic. I'm using v3.0.2 |
@nebiyuelias1 which version of channels are you using? |
channels==2.4.0 |
If you use
You also need to serialize the model in your group_send before passing to channel layer. However I would expect some errors to be thrown like "unable to serialize instance of ", if you do not see any I suppose that the serializer you ara using is failing silently. |
What @sevdog says is correct. I don't think there's enough to really go on as a concrete issue. |
I am trying to use group_send using a model instance:
Here notification, contains a model object like this:
Of course, I do serialize the model object in the consumer, inside receive_group_message. But I am not getting anything in my websocket clients.
The text was updated successfully, but these errors were encountered: