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.
1 parent 61a3071 commit 4f74e8dCopy full SHA for 4f74e8d
django_elasticsearch_dsl/fields.py
@@ -128,6 +128,8 @@ def ListField(field):
128
original_get_value_from_instance = field.get_value_from_instance
129
130
def get_value_from_instance(self, instance, field_value_to_ignore=None):
131
+ if not original_get_value_from_instance(instance):
132
+ return []
133
return [value for value in original_get_value_from_instance(instance)]
134
135
field.get_value_from_instance = MethodType(get_value_from_instance, field)
0 commit comments