Re: [Django] #10941: Add a templatetag to generate querystrings

2023-10-26 Thread Django
#10941: Add a templatetag to generate querystrings
-+-
 Reporter:  Ben Spaulding|Owner:  Tom
 |  Carrick
 Type:  New feature  |   Status:  closed
Component:  Template system  |  Version:  dev
 Severity:  Normal   |   Resolution:  fixed
 Keywords:  pagination   | 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 Mariusz Felisiak ):

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


Comment:

 In [changeset:"e67d3580edbee1a4b58d40875293714ac3fc6937" e67d3580]:
 {{{
 #!CommitTicketReference repository=""
 revision="e67d3580edbee1a4b58d40875293714ac3fc6937"
 Fixed #10941 -- Added {% query_string %} template tag.
 }}}

-- 
Ticket URL: 
Django 
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 django-updates+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/0107018b6b66f5b4-078addf9-7d8e-4317-a680-2d5c5625b93e-00%40eu-central-1.amazonses.com.


Re: [Django] #10941: Add a templatetag to generate querystrings

2023-10-26 Thread Django
#10941: Add a templatetag to generate querystrings
-+-
 Reporter:  Ben Spaulding|Owner:  Tom
 |  Carrick
 Type:  New feature  |   Status:  assigned
Component:  Template system  |  Version:  dev
 Severity:  Normal   |   Resolution:
 Keywords:  pagination   | 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 Mariusz Felisiak):

 * stage:  Accepted => Ready for checkin


-- 
Ticket URL: 
Django 
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 django-updates+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/0107018b6afc194e-e9d13349-2151-442b-b990-a52c670432fd-00%40eu-central-1.amazonses.com.


Re: [Django] #10941: Add a templatetag to generate querystrings

2023-10-24 Thread Django
#10941: Add a templatetag to generate querystrings
-+---
 Reporter:  Ben Spaulding|Owner:  Tom Carrick
 Type:  New feature  |   Status:  assigned
Component:  Template system  |  Version:  dev
 Severity:  Normal   |   Resolution:
 Keywords:  pagination   | Triage Stage:  Accepted
Has patch:  1|  Needs documentation:  0
  Needs tests:  0|  Patch needs improvement:  0
Easy pickings:  0|UI/UX:  0
-+---
Changes (by Tom Carrick):

 * needs_better_patch:  1 => 0


-- 
Ticket URL: 
Django 
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 django-updates+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/0107018b6167da7c-1e7016ef-c1d8-4c08-a24e-6aed32b404e8-00%40eu-central-1.amazonses.com.


Re: [Django] #10941: Add a templatetag to generate querystrings

2023-10-16 Thread Django
#10941: Add a templatetag to generate querystrings
-+---
 Reporter:  Ben Spaulding|Owner:  Tom Carrick
 Type:  New feature  |   Status:  assigned
Component:  Template system  |  Version:  dev
 Severity:  Normal   |   Resolution:
 Keywords:  pagination   | Triage Stage:  Accepted
Has patch:  1|  Needs documentation:  0
  Needs tests:  0|  Patch needs improvement:  1
Easy pickings:  0|UI/UX:  0
-+---
Changes (by Mariusz Felisiak):

 * needs_better_patch:  0 => 1


-- 
Ticket URL: 
Django 
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 django-updates+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/0107018b3bbbee55-d6b56da8-d1c2-4d99-8525-989b37f3e981-00%40eu-central-1.amazonses.com.


Re: [Django] #10941: Add a templatetag to generate querystrings

2023-10-16 Thread Django
#10941: Add a templatetag to generate querystrings
-+---
 Reporter:  Ben Spaulding|Owner:  Tom Carrick
 Type:  New feature  |   Status:  assigned
Component:  Template system  |  Version:  dev
 Severity:  Normal   |   Resolution:
 Keywords:  pagination   | Triage Stage:  Accepted
Has patch:  1|  Needs documentation:  0
  Needs tests:  0|  Patch needs improvement:  0
Easy pickings:  0|UI/UX:  0
-+---
Changes (by Tom Carrick):

 * needs_better_patch:  1 => 0


-- 
Ticket URL: 
Django 
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 django-updates+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/0107018b37db8816-24d2602b-2e55-4de8-9765-70f735be5f14-00%40eu-central-1.amazonses.com.


Re: [Django] #10941: Add a templatetag to generate querystrings

2023-10-16 Thread Django
#10941: Add a templatetag to generate querystrings
-+---
 Reporter:  Ben Spaulding|Owner:  Tom Carrick
 Type:  New feature  |   Status:  assigned
Component:  Template system  |  Version:  dev
 Severity:  Normal   |   Resolution:
 Keywords:  pagination   | Triage Stage:  Accepted
Has patch:  1|  Needs documentation:  0
  Needs tests:  0|  Patch needs improvement:  1
Easy pickings:  0|UI/UX:  0
-+---
Changes (by Mariusz Felisiak):

 * needs_better_patch:  0 => 1


-- 
Ticket URL: 
Django 
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 django-updates+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/0107018b3775bbd2-701c146e-8307-4555-92bd-cbdcff4bf24d-00%40eu-central-1.amazonses.com.


Re: [Django] #10941: Add a templatetag to generate querystrings

2023-10-15 Thread Django
#10941: Add a templatetag to generate querystrings
-+---
 Reporter:  Ben Spaulding|Owner:  Tom Carrick
 Type:  New feature  |   Status:  assigned
Component:  Template system  |  Version:  dev
 Severity:  Normal   |   Resolution:
 Keywords:  pagination   | Triage Stage:  Accepted
Has patch:  1|  Needs documentation:  0
  Needs tests:  0|  Patch needs improvement:  0
Easy pickings:  0|UI/UX:  0
-+---
Changes (by Tom Carrick):

 * has_patch:  0 => 1


Comment:

 [https://github.com/django/django/pull/17368 PR]

-- 
Ticket URL: 
Django 
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 django-updates+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/0107018b3555ae3d-aae34e6f-f682-4f34-a406-6bace8919dbc-00%40eu-central-1.amazonses.com.


Re: [Django] #10941: Add a templatetag to generate querystrings

2023-10-15 Thread Django
#10941: Add a templatetag to generate querystrings
-+---
 Reporter:  Ben Spaulding|Owner:  Tom Carrick
 Type:  New feature  |   Status:  assigned
Component:  Template system  |  Version:  dev
 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
-+---
Changes (by Tom Carrick):

 * owner:  (none) => Tom Carrick
 * status:  new => assigned


-- 
Ticket URL: 
Django 
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 django-updates+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/0107018b3252ece0-27c82d8e-5457-4a42-89b0-e1d1cf05971e-00%40eu-central-1.amazonses.com.


Re: [Django] #10941: Add a templatetag to generate querystrings

2023-05-27 Thread Django
#10941: Add a templatetag to generate querystrings
-+
 Reporter:  Ben Spaulding|Owner:  (none)
 Type:  New feature  |   Status:  new
Component:  Template system  |  Version:  dev
 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 Leonardo Cavallucci):

 I would really love to have this: I could work on this, if it is decided
 how this should work

-- 
Ticket URL: 
Django 
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 django-updates+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/010701885dea073f-9487a53b-78bb-4ca4-a7a2-c2bfdeeea74e-00%40eu-central-1.amazonses.com.


Re: [Django] #10941: Add a templatetag to generate querystrings

2021-12-17 Thread Django
#10941: Add a templatetag to generate querystrings
-+
 Reporter:  Ben Spaulding|Owner:  (none)
 Type:  New feature  |   Status:  new
Component:  Template system  |  Version:  dev
 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
-+
Changes (by Carsten Fuchs):

 * cc: Carsten Fuchs (added)


Comment:

 I too had reinvented this wheel a couple of years ago, unaware of this
 ticket. Other implementations above are more powerful, but this one is
 short:
 {{{
 #!python
 @register.simple_tag
 def query_string(*args, **kwargs):
 """
 Combines dictionaries of query parameters and individual query
 parameters
 and builds an encoded URL query string from the result.
 """
 query_dict = QueryDict(mutable=True)

 for a in args:
 query_dict.update(a)

 remove_keys = []

 for k, v in kwargs.items():
 if v is None:
 remove_keys.append(k)
 elif isinstance(v, list):
 query_dict.setlist(k, v)
 else:
 query_dict[k] = v

 for k in remove_keys:
 if k in query_dict:
 del query_dict[k]

 qs = query_dict.urlencode()
 if not qs:
 return ""
 return "?" + qs
 }}}

 It cannot do everything, but covers all my use cases: Keep most of the
 existing source parameters, but delete, add or change some. Examples:
 {{{
 {# Just repeat the parameters: #}
 {% query_string request.GET %}

 {# Add a parameter: #}
 {% query_string request.GET format='pdf' %}

 {# Change a parameter: #}
 {% query_string request.GET page=next_page_number %}

 {# Overwrite month and year with precomputed values, e.g. with
 next_month_year = {'month': 1, 'year': 2022}, and clear the day: #}
 {% query_string request.GET next_month_year day=None %}
 }}}

 I'm aware that posting yet another implementation does not achieve true
 progress and that the more elaborate implementations above may be more
 appropriate for inclusion in Django.
 Still, I wanted to mention this because in my opinion it keeps the balance
 between features and simplicity.

-- 
Ticket URL: 
Django 
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 django-updates+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/070.d2273be992549f011746ef202b3d403f%40djangoproject.com.


Re: [Django] #10941: Add a templatetag to generate querystrings

2019-12-22 Thread Django
#10941: Add a templatetag to generate querystrings
-+
 Reporter:  Ben Spaulding|Owner:  (none)
 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 Claude Paroz):

 Sure, it's still valid. Read attentively the existing comments.

 Maybe the greatest challenge of this ticket is to find a compromise
 between functionality and simplicity, addressing the more common use cases
 while accepting it won't address all possible needs.

-- 
Ticket URL: 
Django 
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 django-updates+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/070.3cca8993bfa7703678cb7608a4bd4515%40djangoproject.com.


Re: [Django] #10941: Add a templatetag to generate querystrings

2019-12-21 Thread Django
#10941: Add a templatetag to generate querystrings
-+
 Reporter:  Ben Spaulding|Owner:  (none)
 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 Federico Jaramillo Martínez):

 Is this ticket still valid?

 Would a PR with a templatetag be accepted?
 If so, I could be working on this.

 If anyone can confirm I would appreciate.

 Thanks

-- 
Ticket URL: 
Django 
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 django-updates+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/070.f4f4d2a68464a69cccdc41487f7edce5%40djangoproject.com.


Re: [Django] #10941: Add a templatetag to generate querystrings

2018-04-30 Thread Django
#10941: Add a templatetag to generate querystrings
-+
 Reporter:  Ben Spaulding|Owner:  (none)
 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
-+
Changes (by Thomas Capricelli):

 * cc: Thomas Capricelli (added)


-- 
Ticket URL: 
Django 
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 django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/070.e42c58ddd2ed71121d7f637c2d86d441%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Django] #10941: Add a templatetag to generate querystrings

2018-02-01 Thread Django
#10941: Add a templatetag to generate querystrings
-+
 Reporter:  Ben Spaulding|Owner:  (none)
 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
-+
Changes (by Ning):

 * cc: Ning (added)


-- 
Ticket URL: 
Django 
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 django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/070.e72c7e28ebd1f26e5556aca738710a87%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Django] #10941: Add a templatetag to generate querystrings

2017-06-07 Thread Django
#10941: Add a templatetag to generate querystrings
-+
 Reporter:  Ben Spaulding|Owner:  (none)
 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 Jimmy Merrild Krag):

 I made an implementation of the above mentioned `modify_query`.

 [https://pastebin.com/SiDLqs4B]

 Thoughts and comments are most welcome.

--
Ticket URL: 
Django 
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 django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/070.fbba0590fac9aa461b04c57ad48a1819%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Django] #10941: Add a templatetag to generate querystrings

2017-06-06 Thread Django
#10941: Add a templatetag to generate querystrings
-+
 Reporter:  Ben Spaulding|Owner:  (none)
 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 Jimmy Merrild Krag):

 It's been some time since something happened on this one. i have just
 stumpled into needing to change query strings in templates, so I thought
 I'd add my findings.

 I have created two rather simple filter which allows you ro edit the query
 string. `django-spurl` already does some of this, however not very
 elegantly. I think the following three filters would be a great addition
 to Django that will get you "there" much of the time:
 {{{
 #!python
 import six
 from django import template
 import collections

 from django.http import QueryDict

 register = template.Library()


 @register.simple_tag
 def build_query(**kwargs):
 """Build a query string"""
 query_dict = QueryDict(mutable=True)

 for k, v in kwargs.items():
 if isinstance(v, collections.Iterable) and not isinstance(v,
 six.string_types):
 query_dict.setlist(k, v)
 else:
 query_dict[k] = v

 return query_dict.urlencode()


 @register.simple_tag(takes_context=True)
 def set_query_values(context, **kwargs):
 """Override existing parameters in the current query string"""
 query_dict = context.request.GET.copy()

 for k, v in kwargs.items():
 if isinstance(v, collections.Iterable) and not isinstance(v,
 six.string_types):
 query_dict.setlist(k, v)
 else:
 query_dict[k] = v

 return query_dict.urlencode()


 @register.simple_tag(takes_context=True)
 def append_query_values(context, **kwargs):
 """Append to existing parameters in the current query string"""
 query_dict = context.request.GET.copy()

 for k, v in kwargs.items():
 if isinstance(v, collections.Iterable) and not isinstance(v,
 six.string_types):
 for v_item in v:
 query_dict.appendlist(k, v_item)
 else:
 query_dict.appendlist(k, v)

 return query_dict.urlencode()
 }}}

 Usage is e.g. `` or `Select {{ item.name }}`
 Note: They all support iterables as values.

 I think the only ones probably missing is one for removing a key and one
 for removing a specific value from a key.

 I'm also thinking of merging the `set` and `append` (also adding `remove`)
 by prepending each key with the action and letting `None` clear the list
 when using `set_`. I imagine something like `{% modify_query set_level=7
 set_nextlevel=None append_consumedlevels=processed_levels_list
 remove_availablelevels=7 %}`.

 What do you think? Any thoughts?

--
Ticket URL: 
Django 
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 django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/070.313c598fc705fb7c72e08ab616eba7a6%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Django] #10941: Add a templatetag to generate querystrings

2016-02-15 Thread Django
#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: 
Django 
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 django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
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.


Re: [Django] #10941: Add a templatetag to generate querystrings

2015-10-23 Thread Django
#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 spookylukey):

 I think this whole area is solved by django-spurl  -
 https://github.com/j4mie/django-spurl

 It builds on urlobject which can be used for Python code:
 https://github.com/zacharyvoase/urlobject/

 There is also furl for Python code: https://github.com/gruns/furl

 I don't think we need to duplicate any of these within Django.  Having a
 template tag to do 1/10 of what spurl does is just an invitation to
 include more and more of spurl's functionality.  It might be useful to
 have some links to spurl in the documentation.

--
Ticket URL: 
Django 
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 django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/070.e3732b16d89dca9039aec53d9bcb501c%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Django] #10941: Add a templatetag to generate querystrings (was: Add querystring helper methods to Page class)

2015-08-25 Thread Django
#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
-+
Changes (by timgraham):

 * needs_better_patch:  1 => 0
 * has_patch:  1 => 0
 * component:  Core (Other) => Template system


--
Ticket URL: 
Django 
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 django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/070.5135a608f95b0b2d5f09078c8f82636f%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.