Skip to content

Commit 3d1debd

Browse files
Merge pull request #202 from michaelwood/all_fields_empty_tuple
Use empty tuple instead of None in serializers fields __all__
2 parents 5e52bc6 + 30d0d8e commit 3d1debd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/django_elasticsearch_dsl_drf/serializers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ def get_fields(self):
200200
# Match drf convention of specifying "__all__" for all available fields
201201
# This is the existing behavior so we can ignore this value.
202202
if __fields == "__all__":
203-
__fields = None
203+
__fields = ()
204204

205205
for field_name, field_type in six.iteritems(document_fields):
206206
orig_name = field_name[:]

0 commit comments

Comments
 (0)