How to select date range facet in Haystack?
===

How do I apply the facet to my current search?

At the moment, I'm using this query (url escaped, of course):

    /search/?q=HP&selected_facets=created_exact:[2011-12-01T00:00:00Z%20TO%202011-12-31T00:00:00Z]

but I get this error in the Solr terminal output

    Caused by: java.text.ParseException: Unparseable date: "[2011-12-01T00:00:00Z"

Here is the `INFO` printed on the Solr terminal (trimmed) when I test my facet link:

    INFO: [] webapp=/solr path=/select/ params={facet=on&f.created_exact.facet.date.end=2012-07-10T00:00:00Z&facet.date=created_exact&facet.date.other=none&wt=json&rows=0&f.created_exact.facet.date.start=2011-07-11T00:00:00Z&fl=*+score&f.created_exact.facet.date.gap=%2B1MONTH/MONTH&start=0&q=(HP+AND+site_id:2)&fq=created_exact:"\[2011\-12\-01T00\:00\:00Z+to+2011\-12\-31T00\:00\:00Z\]"&fq=django_ct:(core.lead)} status=400 QTime=2 

I've noticed that the string passed by Haystack is different from the query passed by the Solr admin form (http://localhost:8983/solr/admin/form.jsp). These are printed on the Solr terminal labeled `INFO`.

    # Haystack generated query:
    fq=created_exact:"\[2011\-12\-01T00\:00\:00Z+to+2011\-12\-31T00\:00\:00Z\]"

    # Solr admin form query:
    fq=created_exact:[2011-12-01T00:00:00Z+TO+2011-12-31T00:00:00Z]

It seems Haystack is escaping the query before passing it to Solr? And Solr can't parse it? 
