You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In sqlalchemy ModelView, when having a model with self-join as relation(let's call it child), flask admin cannot filter over both child and child parent fields, since they're mapped to the single key_name in scaffold_filters method. However, all the needed joins are okay. When creating a query, both parent and child field refers to parent alias in raw sql(checked many times). Solution - add some part to the filter name, if there are joins already. Check PR pls #1618
The text was updated successfully, but these errors were encountered:
In sqlalchemy ModelView, when having a model with self-join as relation(let's call it child), flask admin cannot filter over both child and child parent fields, since they're mapped to the single key_name in scaffold_filters method. However, all the needed joins are okay. When creating a query, both parent and child field refers to parent alias in raw sql(checked many times). Solution - add some part to the filter name, if there are joins already. Check PR pls #1618
The text was updated successfully, but these errors were encountered: