Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Filter on recursion relationship #1617

Open
DaniilAnichin opened this issue Mar 12, 2018 · 0 comments
Open

Filter on recursion relationship #1617

DaniilAnichin opened this issue Mar 12, 2018 · 0 comments

Comments

@DaniilAnichin
Copy link
Contributor

DaniilAnichin commented Mar 12, 2018

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant