Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
Already on GitHub? Sign in to your account
Wagtailsearch doesn't deal with annotations in querysets #2340
Comments
alexgleason
added
type:Bug
status:Needs review
labels
Mar 16, 2016
kaedroho
added
type:Enhancement
component:Search
type:Bug
and removed
type:Bug
status:Needs review
type:Enhancement
labels
Mar 22, 2016
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
danni commentedMar 11, 2016
Given a model where you've used a callable to generate a
FilterField:Django expects you to have annotated this field into your queryset in order to query on it.
This generates an exception in Wagtail:
If you add a target field (not strictly correct as I understand the docs).
It should be reading the attribute name from the annotate method I think?