Skip to content

Commit 74bb495

Browse files
committed
get fields from mappings
1 parent 813ba3b commit 74bb495

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

django_mongodb_backend/introspection.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ def _get_search_index_info(self, table_name):
4949
"searchAnalyzer": details["latestDefinition"].get("searchAnalyzer"),
5050
"mappings": details["latestDefinition"]["mappings"],
5151
}
52-
columns = list(options.get("fields", {}).keys())
52+
columns = list(options["mappings"].get("fields", {}).keys())
5353
type_ = SearchIndex.suffix
5454
constraints[details["name"]] = {
5555
"check": False,

0 commit comments

Comments
 (0)