1
0
mirror of https://github.com/django/django.git synced 2025-10-24 06:06:09 +00:00

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.
This commit is contained in:
Sarah Boyce
2025-02-12 17:08:03 +01:00
parent 0ee842bb45
commit 05002c153c
4 changed files with 23 additions and 9 deletions

View File

@@ -963,7 +963,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