-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enhancement: ability to remove specific values from a URL #7
Comments
Hi, Does |
Based on the documentation, no - what I need is something like:
which produces:
|
Aha, yes, sorry. Misunderstood. It doesn't look like this functionality is in urlobject. Is it worth adding, @zacharyvoase ? Otherwise, we could do something along the lines of:
Would you like to have a stab at a pull request @acdha ? |
I think I'd prefer to add this functionality to |
Totally necroing this - was this ever implemented? |
Is this still open for a PR to fix this? UrlObject supports this: def del_query_param_value(self, name, value) |
With faceted search I often need to remove specific key:value pairs from a URL while leaving other values for that key intact – e.g. with
?category=1&category=5
I might want to removecategory=1
to produce?category=5
.I've been using this tag for years and was hoping that django-spurl might be a replacement:
https://github.com/acdha/django-sugar/blob/master/sugar/templatetags/querystring_tags.py
The text was updated successfully, but these errors were encountered: