#10941: Add a templatetag to generate querystrings
---------------------------------+------------------------------------
Reporter: benspaulding | Owner:
Type: New feature | Status: new
Component: Template system | Version: master
Severity: Normal | Resolution:
Keywords: pagination | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
---------------------------------+------------------------------------
Comment (by funkybob):
Personally I think it wouldn't hurt to have a helper for the specific case
of altering the page number _only_.
In a prior project we ended up needing 4 different querystring
manipulators [and I'm sure there could have been more].
One would output the original, less any listed keys, plus any specified
keys _overridden_ in value.
One would just add new values.
One would return the original with only the listed keys.
A final just updated the page number.
This still doesn't cover, for instance, when you want to add a second
value to an existing key... or.... well, given it's a multi-dict, the
options are endless.
So, to reiterate: A _simple_ helper for helping with pagination, which is
a problem almost everyone encounters, would be good.
A general purpose querystring manipulator? Leave that to 3rd parties.
--
Ticket URL: <https://code.djangoproject.com/ticket/10941#comment:26>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/070.ee388d6a9a66106c34469528862987d9%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.