Re: [Django] #36268: The querystring template tag should render an empty query string result as "?" instead of ""

11 views
Skip to first unread message

Django

unread,
Mar 20, 2025, 10:50:00 AM3/20/25
to django-...@googlegroups.com
#36268: The querystring template tag should render an empty query string result as
"?" instead of ""
-------------------------------------+-------------------------------------
Reporter: Sarah Boyce | Owner: Natalia
Type: | Bidart
Cleanup/optimization | Status: assigned
Component: Template system | Version: dev
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Natalia Bidart):

* has_patch: 0 => 1

Comment:

[https://github.com/django/django/pull/19289 PR]
--
Ticket URL: <https://code.djangoproject.com/ticket/36268#comment:2>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

Django

unread,
Mar 20, 2025, 1:19:35 PM3/20/25
to django-...@googlegroups.com
#36268: The querystring template tag should render an empty query string result as
"?" instead of ""
-------------------------------------+-------------------------------------
Reporter: Sarah Boyce | Owner: Natalia
Type: | Bidart
Cleanup/optimization | Status: assigned
Component: Template system | Version: dev
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Comment (by David Feeley):

Hi, for whatever its worth, I like this change, conceptually an empty
query string to me should be '?', and not '', given the way empty hrefs
mean to reload the current page.
thanks!
Dave
--
Ticket URL: <https://code.djangoproject.com/ticket/36268#comment:3>

Django

unread,
Mar 24, 2025, 10:20:28 AM3/24/25
to django-...@googlegroups.com
#36268: The querystring template tag should render an empty query string result as
"?" instead of ""
-------------------------------------+-------------------------------------
Reporter: Sarah Boyce | Owner: Natalia
Type: | Bidart
Cleanup/optimization | Status: assigned
Component: Template system | Version: dev
Severity: Normal | Resolution:
Keywords: | Triage Stage: Ready for
| checkin
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Sarah Boyce):

* stage: Accepted => Ready for checkin

--
Ticket URL: <https://code.djangoproject.com/ticket/36268#comment:4>

Django

unread,
Mar 24, 2025, 10:53:54 AM3/24/25
to django-...@googlegroups.com
#36268: The querystring template tag should render an empty query string result as
"?" instead of ""
-------------------------------------+-------------------------------------
Reporter: Sarah Boyce | Owner: Natalia
Type: | Bidart
Cleanup/optimization | Status: closed
Component: Template system | Version: dev
Severity: Normal | Resolution: fixed
Keywords: | Triage Stage: Ready for
| checkin
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by nessita <124304+nessita@…>):

* resolution: => fixed
* status: assigned => closed

Comment:

In [changeset:"0b4f2d8d397dacb555b327435d1c815da59feda5" 0b4f2d8d]:
{{{#!CommitTicketReference repository=""
revision="0b4f2d8d397dacb555b327435d1c815da59feda5"
Fixed #36268 -- Added leading `?` in every querystring template tag
result.

Thanks Sarah Boyce for the report.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/36268#comment:5>
Reply all
Reply to author
Forward
0 new messages