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

Misleading docs about querying many_many through join data #507

Closed
GuySartorelli opened this issue May 10, 2024 · 0 comments
Closed

Misleading docs about querying many_many through join data #507

GuySartorelli opened this issue May 10, 2024 · 0 comments
Assignees

Comments

@GuySartorelli
Copy link
Member

GuySartorelli commented May 10, 2024

In the CMS 4 docs it says

In order to filter on the join table during queries, you can use the class name of the joining table for any sql conditions.

This is just outright wrong - you have to use the table name, not the class name.

In the CMS 5 docs it says

You can filter on the relation by the extra fields automatically, assuming they don't conflict with names of fields on other tables in the query.

But there is no advice on what to do if they do conflict.

PRs

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

No branches or pull requests

2 participants