Skip to content

Commit 6223ea1

Browse files
WaVEVJibola
andauthored
Update django_mongodb_backend/introspection.py
Jib's suggestion Co-authored-by: Jib <[email protected]>
1 parent a3efe35 commit 6223ea1

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
@@ -42,8 +42,8 @@ def _get_search_index_info(self, table_name):
4242
type_ = VectorSearchIndex.suffix
4343
options = details
4444
else:
45-
columns = list(details["latestDefinition"]["mappings"].get("fields", {}).keys())
4645
options = details["latestDefinition"]["mappings"]
46+
columns = list(options.get("fields", {}).keys())
4747
type_ = SearchIndex.suffix
4848
constraints[details["name"]] = {
4949
"check": False,

0 commit comments

Comments
 (0)