summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorSarah Boyce <42296566+sarahboyce@users.noreply.github.com>2025-02-12 17:08:03 +0100
committerSarah Boyce <42296566+sarahboyce@users.noreply.github.com>2025-02-13 15:50:53 +0100
commit92d5b2f389314f12ad3f5c192e9c56a3938b2b32 (patch)
tree29702e82589de0a21d5937836a16e0eed9b58dda /docs
parentd3d9f3a5a4a0864dd626d1fe634c19c3ec9336d4 (diff)
[5.2.x] Fixed #36182 -- Returned "?" if all parameters are removed in querystring template tag.
Thank you to David Feeley for the report and Natalia Bidart for the review. Backport of 05002c153c5018e4429a326a6699c7c45e5ea957 from main.
Diffstat (limited to 'docs')
-rw-r--r--docs/ref/templates/builtins.txt2
-rw-r--r--docs/releases/5.1.7.txt4
2 files changed, 4 insertions, 2 deletions
diff --git a/docs/ref/templates/builtins.txt b/docs/ref/templates/builtins.txt
index 8673727861..27644a3152 100644
--- a/docs/ref/templates/builtins.txt
+++ b/docs/ref/templates/builtins.txt
@@ -965,7 +965,7 @@ This tag requires a :class:`~django.http.QueryDict` instance, which defaults to
:attr:`request.GET <django.http.HttpRequest.GET>` if none is provided.
If the :class:`~django.http.QueryDict` is empty and no additional parameters
-are provided, an empty string is returned. A non-empty result includes a
+are provided, an empty string is returned. Otherwise, the result includes a
leading ``"?"``.
.. admonition:: Using ``request.GET`` as default
diff --git a/docs/releases/5.1.7.txt b/docs/releases/5.1.7.txt
index 8143305a96..e184da6aca 100644
--- a/docs/releases/5.1.7.txt
+++ b/docs/releases/5.1.7.txt
@@ -9,4 +9,6 @@ Django 5.1.7 fixes several bugs in 5.1.6.
Bugfixes
========
-* ...
+* Fixed a bug in Django 5.1 where the ``{% querystring %}`` template tag
+ returned an empty string rather than ``"?"`` when all parameters had been
+ removed from the query string (:ticket:`36182`).