Задать вопрос

Тел: +7 965 3737 888

434

Просмотров

0

Ответов

Template tags/filter for working with query strings

<p>Some template tags/filter for working with query strings in templates.</p>
<p>Examples:</p>
{% load qstring %}

{% qstring %} # Prints current request's query string
{% qstring as current_qstring %} # Same but goes to context

{{ current_qstring|qstring_del:"key1" }} # Deletes all key1 values
{{ current_qstring|qstring_del:"key1&amp;key2" }} # Deletes all key1 and key2values

{{ current_qstring|qstring_set:"key1=1&amp;key2=2" }} # Deletes all old key1 and key2 values and adds the new values.

Вопрос полезен? Да0/Нет0
file_3150.py(2.2Кб)
None