mirror of
https://github.com/django/daphne.git
synced 2025-07-11 08:22:17 +03:00
Fix for issue 398. Converts channels.binding.websockets.WebsocketBinding.fields to list before comparing to ['__all__'] to ensure most common data structures do not cause unexpected failures (i.e. ('__all__',), '__all__') (#399)
This commit is contained in:
parent
1673be5b75
commit
51561273ae
|
@ -55,7 +55,7 @@ class WebsocketBinding(Binding):
|
||||||
"""
|
"""
|
||||||
Serializes model data into JSON-compatible types.
|
Serializes model data into JSON-compatible types.
|
||||||
"""
|
"""
|
||||||
if self.fields == ['__all__']:
|
if list(self.fields) == ['__all__']:
|
||||||
fields = None
|
fields = None
|
||||||
else:
|
else:
|
||||||
fields = self.fields
|
fields = self.fields
|
||||||
|
|
Loading…
Reference in New Issue
Block a user