We get a silent (as it's during template render) exception when
generating filter querystrings, as we're passing a list to the string
format operator rather than a tuple.
This change removes the map and explicitly applies sanitise to the
(name, value) pair.
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
s = unicode(s)
return quote(s.encode('utf-8'))
- return '?' + '&'.join(['%s=%s' % map(sanitise, p) for p in pairs])
+ return '?' + '&'.join(['%s=%s' % (sanitise(k), sanitise(v))
+ for (k, v) in pairs])
def querystring_without_filter(self, filter):
return self.querystring(filter)