[FIX] website: website had incomplete context

Before this commit, website had incomplete context.
It was causing website.menu to not be translated correctly because lang was
not set on website.

Now, since the website has the context correctly binded, menus are translated

opw-787012
This commit is contained in:
Romain Derie
2017-12-22 15:44:39 +01:00
parent 4f4e686fb2
commit 174cd2aeee
+1 -1
View File
@@ -83,7 +83,7 @@ class Http(models.AbstractModel):
super(Http, cls)._add_dispatch_parameters(func)
if request.routing_iteration == 1:
request.website = request.website.with_context(context)
request.website = request.website.with_context(request.context)
@classmethod
def _get_languages(cls):