I'll have to ensure an "asterisk" is passed whenever the doctype or city are not specifically chosen, and as such, I'd have to enter an option "asterisk" in the form that people will have to pick if they don't want to specify a field. But that's ugly. There must be a prettier way to do this.
The other issue is how to create the form so that multiple options can be selected and are returned in the right format. Format should be "paloalto,redwoodcity" otherwise it won't work.
Ok, so I figured out how to create the query so that you can add field searches (see https://github.com/ducoquelicot/observ_admin/blob/master/searchtest/queryfunction.py)
Issues:
I'll have to ensure an "asterisk" is passed whenever the doctype or city are not specifically chosen, and as such, I'd have to enter an option "asterisk" in the form that people will have to pick if they don't want to specify a field. But that's ugly. There must be a prettier way to do this.
The other issue is how to create the form so that multiple options can be selected and are returned in the right format. Format should be "paloalto,redwoodcity" otherwise it won't work.