1
0
mirror of https://github.com/django/django.git synced 2025-10-31 09:41:08 +00:00

Refs #10941 -- Renamed query_string template tag to querystring.

This commit is contained in:
Sarah Boyce
2024-07-15 18:28:55 +02:00
committed by GitHub
parent 65344f0e1e
commit 27043bde5b
4 changed files with 51 additions and 55 deletions

View File

@@ -26,10 +26,10 @@ only officially support the latest release of each series.
What's new in Django 5.1
========================
``{% query_string %}`` template tag
``{% querystring %}`` template tag
-----------------------------------
Django 5.1 introduces the :ttag:`{% query_string %} <query_string>` template
Django 5.1 introduces the :ttag:`{% querystring %} <querystring>` template
tag, simplifying the modification of query parameters in URLs, making it easier
to generate links that maintain existing query parameters while adding or
changing specific ones.
@@ -53,7 +53,7 @@ When switching to using this new template tag, the above magically becomes:
.. code-block:: html+django
<a href="{% query_string page=page.next_page_number %}">Next page</a>
<a href="{% querystring page=page.next_page_number %}">Next page</a>
PostgreSQL Connection Pools
---------------------------