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

inner filter #132

Open
drorsun opened this issue Jan 11, 2016 · 0 comments
Open

inner filter #132

drorsun opened this issue Jan 11, 2016 · 0 comments

Comments

@drorsun
Copy link

drorsun commented Jan 11, 2016

Hi,
not sure if I am doing this correctly - trying to filter a join query with user fullName.
I have this query that works well (returns a result set)

sharedSong.Query.all().select_related("user").filter(cloudId__exists=True).filter(deletionDate__exists=False).filter(user__exists=True).order_by("-createdAt")

Playing with it for while I am pretty sure that the "user" is recognised.

However I need another filter - to get only users that have a fullName.
So I used the same query with the filter addition of 'user__fullName__exists=True' but I get zero results:

sharedSong.Query.all().select_related("user").filter(cloudId__exists=True).filter(deletionDate__exists=False).filter(hasUploadedVideo=True).filter(user__exists=True).filter(user__fullName__exists=True).order_by("-createdAt")

Is this a bug or am I using this incorrectly?

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