mirror of
https://github.com/django/daphne.git
synced 2025-07-10 16:02:18 +03:00
removed encoding from serialize
This commit is contained in:
parent
9d7cba109e
commit
1cca353e51
|
@ -40,9 +40,7 @@ class WebsocketBinding(Binding):
|
||||||
"data": self.serialize_data(instance),
|
"data": self.serialize_data(instance),
|
||||||
"model": self.model_label,
|
"model": self.model_label,
|
||||||
}
|
}
|
||||||
# Encode for the stream
|
return payload
|
||||||
assert self.stream is not None
|
|
||||||
return WebsocketDemultiplexer.encode(self.stream, payload)
|
|
||||||
|
|
||||||
def serialize_data(self, instance):
|
def serialize_data(self, instance):
|
||||||
"""
|
"""
|
||||||
|
|
Loading…
Reference in New Issue
Block a user