Skip to content

Commit

Permalink
Remove access of _legacy_setup_joins property removed in SQLAlchemy 2.x
Browse files Browse the repository at this point in the history
  • Loading branch information
phillipuniverse committed Jan 6, 2024
1 parent 9c69f42 commit b5de041
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sqlalchemy_filters/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ def get_query_models(query): # pragma: nocover
# or query might be a sqla2.0 select statement
pass
# also try to infer the models from various internals
for table_tuple in query._setup_joins + query._legacy_setup_joins:
for table_tuple in query._setup_joins:
models.append(get_model_from_table(table_tuple[0]))

# account also query.select_from entities
Expand Down

0 comments on commit b5de041

Please sign in to comment.