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

Filtering by slugs doesn't work when chained #19

Open
berislavlopac opened this issue Jun 23, 2013 · 1 comment
Open

Filtering by slugs doesn't work when chained #19

berislavlopac opened this issue Jun 23, 2013 · 1 comment

Comments

@berislavlopac
Copy link

The documentation says that this works:

Patient.objects.filter(eav__weight=42.2)

While that is correct, this will not work:

Patient.objects.filter(foo=bar).filter(eav__weight=42.2)

Nor will this:

queryset = Patient.objects.filter(foo=bar)
queryset = queryset.filter(eav__weight=42.2)

The EntityManager should somehow always return a wrapped function instead of the original.

@joeyespo
Copy link

joeyespo commented Apr 7, 2015

Does swapping the order help as a workaround?

Patient.objects.filter(eav__weight=42.2).filter(foo=bar)

Or are you demonstrating this as a symptom of a bigger issue?

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

2 participants