airflow icon indicating copy to clipboard operation
airflow copied to clipboard

Use `back_populates` instead of `sqlalchemy.orm.backref` in bidirectional relationships

Open Taragolis opened this issue 1 year ago • 0 comments

backref is a legacy approach for construct relationships, instead of that preferable way is use back_populates keyword argument in relationship for built it explicitly


^ Add meaningful description above Read the Pull Request Guidelines for more information. In case of fundamental code changes, an Airflow Improvement Proposal (AIP) is needed. In case of a new dependency, check compliance with the ASF 3rd Party License Policy. In case of backwards incompatible changes please leave a note in a newsfragment file, named {pr_number}.significant.rst or {issue_number}.significant.rst, in newsfragments.

Taragolis avatar May 06 '24 11:05 Taragolis