From b1c1fd33ed7a1192050b25bd0a256a97326d7692 Mon Sep 17 00:00:00 2001 From: Natalia <124304+nessita@users.noreply.github.com> Date: Thu, 20 Mar 2025 12:21:31 -0300 Subject: Improved and reorganized querystring template tag docstring and ref docs. --- docs/ref/templates/builtins.txt | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'docs/ref') diff --git a/docs/ref/templates/builtins.txt b/docs/ref/templates/builtins.txt index f5470ad0eb..5712b65d54 100644 --- a/docs/ref/templates/builtins.txt +++ b/docs/ref/templates/builtins.txt @@ -996,17 +996,6 @@ Outputs the current query string verbatim. So if the query string is Outputs the current query string with the addition of the ``size`` parameter. Following the previous example, the output would be ``?color=green&size=M``. -Custom QueryDict -~~~~~~~~~~~~~~~~ - -.. code-block:: html+django - - {% querystring my_query_dict %} - -You can provide a custom ``QueryDict`` to be used instead of ``request.GET``. -So if ``my_query_dict`` is ````, this outputs -``?color=blue``. - Setting items ~~~~~~~~~~~~~ @@ -1040,6 +1029,17 @@ Handling lists If ``my_list`` is ``["red", "blue"]``, the output will be ``?color=red&color=blue``, preserving the list structure in the query string. +Custom QueryDict +~~~~~~~~~~~~~~~~ + +.. code-block:: html+django + + {% querystring my_query_dict %} + +You can provide a custom ``QueryDict`` to be used instead of ``request.GET``. +So if ``my_query_dict`` is ````, this outputs +``?color=blue``. + Dynamic usage ~~~~~~~~~~~~~ -- cgit v1.3