diff --git a/channels/binding/websockets.py b/channels/binding/websockets.py index 4238b2d..46a2fba 100644 --- a/channels/binding/websockets.py +++ b/channels/binding/websockets.py @@ -56,7 +56,7 @@ class WebsocketBinding(Binding): Serializes model data into JSON-compatible types. """ if self.fields is not None: - if list(self.fields) == ['__all__']: + if self.fields == '__all__' or list(self.fields) == ['__all__']: fields = None else: fields = self.fields