From bb74c80b7147cf36db7f7942157a7716bace53b0 Mon Sep 17 00:00:00 2001 From: AlexejStukov Date: Wed, 20 Jul 2016 18:21:23 +0200 Subject: [PATCH] add a modelname to the payload dict see #256 --- channels/binding/websockets.py | 1 + 1 file changed, 1 insertion(+) diff --git a/channels/binding/websockets.py b/channels/binding/websockets.py index 2cff4ec..56a1a6c 100644 --- a/channels/binding/websockets.py +++ b/channels/binding/websockets.py @@ -38,6 +38,7 @@ class WebsocketBinding(Binding): "action": action, "pk": instance.pk, "data": self.serialize_data(instance), + "model": self.model_label, } # Encode for the stream assert self.stream is not None