akvo.rsr.templatetags.query_string module

akvo.rsr.templatetags.query_string.get_query_string(p, new_params=None, remove=None)[source]

Add and remove query parameters. From django.contrib.admin.

akvo.rsr.templatetags.query_string.query_string(context, add=None, remove=None)[source]

Allows the addition and removal of query string parameters.

_response.html is just {{ response }}

Usage: http://www.url.com/{% query_string “param_to_add=value, param_to_add=value” “param_to_remove, params_to_remove” %} http://www.url.com/{% query_string “” “filter” %}filter={{new_filter}} http://www.url.com/{% query_string “sort=value” “sort” %}

akvo.rsr.templatetags.query_string.string_to_dict(string)[source]

Usage:

{{ url|thumbnail:"width=10,height=20" }}
{{ url|thumbnail:"width=10" }}
{{ url|thumbnail:"height=20" }}
akvo.rsr.templatetags.query_string.string_to_list(string)[source]

Usage:

{{ url|thumbnail:"width,height" }}