Skip to content
Snippets Groups Projects
Commit ae2e1f04 authored by Brian Moe's avatar Brian Moe
Browse files

GraceQueryField/SimpleSearchForm builds db query.

GraceQueryField used to return a Q() instance for cleaned 'query'
field.  Unfortunately, bad queries were not always identified until
the Q() instance was used to do a query.  If the filter() is done
while cleaning the data, this error case can be identified earlier
and in what is likely a more appropriate place.  Luckily, Django
querysets are lazy, so only the SQL query is build -- nothing hits
the database itself until the data is required.
parent 11c4e2a8
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment