fix(kfet/ws): 'type' field is required
This commit is contained in:
parent
9178511005
commit
e1bd6bc6ad
1 changed files with 0 additions and 3 deletions
|
@ -72,9 +72,6 @@ class DjangoJsonWebsocketConsumer(AsyncJsonWebsocketConsumer):
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
async def encode_json(cls, content):
|
async def encode_json(cls, content):
|
||||||
# Remove the type value, only used by Channels to choose the group to send to
|
|
||||||
content.pop("type")
|
|
||||||
|
|
||||||
return json.dumps(content, cls=DjangoJSONEncoder)
|
return json.dumps(content, cls=DjangoJSONEncoder)
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue