SQLAlchemy - order_by on relationship for join table

后端 未结 3 1559
灰色年华
灰色年华 2021-02-12 20:24

I\'m using declarative SQLAlchemy and I have three models: Role, Permission, and RolePermission. In my Role model, I have t

3条回答
  •  春和景丽
    2021-02-12 20:34

    The problem is in permissionLinks relationship. Ordering its items by by Role.name makes no sense to me.

提交回复
热议问题