I'm having a problem with the query string link generated in the filter sidebar of the django admin. The problem only happens when there are multiple query parameters like month and year. Here is a snippet from the html source <h3> By Date Made </h3> <ul> <li class="selected"> <a href="?">Any date</a></li> <li><a href="? date_passaged__day=19&amp;date_passaged__year=2007&amp;date_passaged__month=11">Today</ a></li> <li> <a href="? date_passaged__lte=2007-11-19&amp;date_passaged__gte=2007-11-12">Past 7 days</a></li> <li> <a href="? date_passaged__year=2007&amp;date_passaged__month=11">This month</ a></li> <li> <a href="?date_passaged__year=2007">This year</a></li> </ul>
The ampersand is getting escaped twice or something obviously. I've tracked the problem down to the use of the iriencode template filter for the query_string in the admin template filter.py, which i've listed here (it's there by default). If I remove the iriencode, I don't get the repeat of the ampersand entity. <a href="{{ choice.query_string|iriencode }}">{{ choice.display| escape }}</a></li> Does this have something to do with the autoescape revisions that were just put out? I'm working off of the latest revision if that's of any help. Thanks. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---