bugraoz93 commented on code in PR #42782: URL: https://github.com/apache/airflow/pull/42782#discussion_r1794302269
########## airflow/api_fastapi/parameters.py: ########## @@ -171,7 +180,10 @@ def to_orm(self, select: Select) -> Select: f"the attribute does not exist on the model", ) - column = self.attr_mapping.get(lstriped_orderby, None) or getattr(DagModel, lstriped_orderby) + if self.to_replace: + lstriped_orderby = self.to_replace.get(lstriped_orderby, lstriped_orderby) + + column = self.attr_mapping.get(lstriped_orderby, None) or getattr(self.model, lstriped_orderby) Review Comment: Do you mean the `model`? -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@airflow.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org