Skip to content

Commit 529f451

Browse files
committed
Fix.
1 parent 7372300 commit 529f451

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

django_mongodb_backend/fields/polymorphic_embedded_model_array.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ def __init__(self, key_name, array_field, *args, **kwargs):
9898
# Lookups iterate over the array of embedded models. A virtual column
9999
# of the queried field's type represents each element.
100100
column_target = field.clone()
101-
column_name = f"${self.PREFIX_ITERABLE}.{key_name}"
101+
column_name = f"$item.{key_name}"
102102
column_target.db_column = column_name
103103
column_target.set_attributes_from_name(column_name)
104104
self._lhs = Col(None, column_target)

0 commit comments

Comments
 (0)