mirror of
https://github.com/django/django.git
synced 2025-08-03 02:23:12 +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:
parent
0ee842bb45
commit
05002c153c
4 changed files with 23 additions and 9 deletions
|
@ -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
|
||||
|
|
|
@ -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`).
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue