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 9f61f95 + eccd32d commit 659ca85Copy full SHA for 659ca85
src/models.py
@@ -45,7 +45,7 @@ def __init__(self, model, client):
45
self.__client = client
46
self.__set_index(client)
47
48
- all_fields = model._meta.get_all_field_names()
+ all_fields = [f.name for f in model._meta.get_fields()]
49
50
# Avoid error when there is only one field to index
51
if isinstance(self.fields, str):
0 commit comments