mirror of
https://github.com/django/daphne.git
synced 2025-07-14 18:02:17 +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.
|
Serializes model data into JSON-compatible types.
|
||||||
"""
|
"""
|
||||||
if self.fields is not None:
|
if self.fields is not None:
|
||||||
if list(self.fields) == ['__all__']:
|
if self.fields == '__all__' or list(self.fields) == ['__all__']:
|
||||||
fields = None
|
fields = None
|
||||||
else:
|
else:
|
||||||
fields = self.fields
|
fields = self.fields
|
||||||
|
|
Loading…
Reference in New Issue
Block a user