mirror of
https://github.com/django/daphne.git
synced 2025-04-21 01:02:06 +03:00
check accept fields = '__all__' in serialize_data (#404)
This commit is contained in:
parent
b9d2f534c4
commit
4f517bb9fc
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user