We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents b289a62 + dd7b59a commit 5e52bc6Copy full SHA for 5e52bc6
src/django_elasticsearch_dsl_drf/serializers.py
@@ -197,6 +197,11 @@ def get_fields(self):
197
declared_fields = copy.deepcopy(self._declared_fields)
198
field_mapping = OrderedDict()
199
200
+ # Match drf convention of specifying "__all__" for all available fields
201
+ # This is the existing behavior so we can ignore this value.
202
+ if __fields == "__all__":
203
+ __fields = None
204
+
205
for field_name, field_type in six.iteritems(document_fields):
206
orig_name = field_name[:]
207
0 commit comments