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

fix filter rewrites for m2o/m2m fields #27

Merged
merged 2 commits into from
Jun 11, 2015
Merged

Conversation

ryochiji
Copy link
Contributor

@aleontiev - Not sure how I missed this, but Django requires different names for accessing vs filtering for remote fields. E.g. location.user_set.all() to retrieve, but Location.objects.filter(user=1) to filter. Updated the rewrite logic to strip off _set when filtering on remote fields.

@ryochiji
Copy link
Contributor Author

@aleontiev - Updated.

aleontiev added a commit that referenced this pull request Jun 11, 2015
fix filter rewrites for m2o/m2m fields
@aleontiev aleontiev merged commit 85d7f91 into master Jun 11, 2015
@atzannes atzannes deleted the fix/filter-remote branch August 24, 2018 20:11
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

Successfully merging this pull request may close these issues.

2 participants