Plugin doesn't actually populate the "q" queryset

Chris's Avatar

Chris

22 Jul, 2011 04:29 PM

I've implemented the plugin on a super-simple search form. Everything works grand except....the "q" (queryset) doesn't ever get populated with the values, so when someone finally submits the search query, they always get nothing.

So the dropdown list of values works fine and the user clicks on an item. It appears on the page. But when they click the 'Submit' button, the URL is something like this:

http://localhost:8000/fuzhou/places/?q=&as_values_011=65%2C

"as_values_xx" has something, but the "q" parameter has nothing.

My HTML is simple, just a form like this:




Any ideas?

  1. 1 Posted by Chris on 22 Jul, 2011 04:30 PM

    Chris's Avatar
    <form action="." id="search">
    <input id="id_q" type="text" name="q" value="">
    <input type="submit" value="" class="search-button">
    </form>
    

    sorry, code didn't format properly.

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac