[FIX] website_blog: avoid using map to please pylint
This commit is contained in:
@@ -106,7 +106,7 @@ class WebsiteBlog(http.Controller):
|
||||
# retrocompatibility to accept tag as slug
|
||||
active_tag_ids = tag and [int(unslug(t)[1]) for t in tag.split(',')] or []
|
||||
if active_tag_ids:
|
||||
fixed_tag_slug = ",".join(map(slug, request.env['blog.tag'].browse(active_tag_ids)))
|
||||
fixed_tag_slug = ",".join(slug(t) for t in request.env['blog.tag'].browse(active_tag_ids))
|
||||
if fixed_tag_slug != tag:
|
||||
return request.redirect(request.httprequest.full_path.replace("/tag/%s/" % tag, "/tag/%s/" % fixed_tag_slug, 1), 301)
|
||||
domain += [('tag_ids', 'in', active_tag_ids)]
|
||||
|
||||
Reference in New Issue
Block a user