Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Simon Daron
panikweb
Commits
921f77a6
Commit
921f77a6
authored
Apr 21, 2017
by
fred
Browse files
fix encoding issues in removing facets
parent
5b1088c6
Changes
1
Hide whitespace changes
Inline
Side-by-side
panikweb/paniktags/templatetags/paniktags.py
View file @
921f77a6
...
...
@@ -243,7 +243,7 @@ def remove_facet(facet_id, url, facet):
x
[
0
]
==
'selected_facets'
and
x
[
1
]
==
facet
)]
query
=
'&'
.
join
([
'%s=%s'
%
x
for
x
in
query_string
])
url
=
urlparse
.
urlunsplit
([
scheme
,
netloc
,
path
,
query
,
None
])
return
re
.
sub
(
r
'&page=\d+'
,
''
,
url
)
return
unicode
(
re
.
sub
(
r
'&page=\d+'
,
''
,
url
)
,
'utf-8'
)
@
register
.
filter
def
remove_tag_facet
(
url
,
facet
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment