-
- Downloads
[FIX] postprocessing of request arguments in website
If website is installed but not used/enabled for the current controller, overridden methods like _get_converters will *still run* for the controller's dispatch. This means a ModelConverter used in a controller with website installed but not enabled will use website.models.ir_http.ModelConverter, not base.ir.ir_http.ModelConverter, and base's args postprocessing will *not* be able to convert the placeholder object to a real UID, only website's postprocessing can do so. And as far as I can see there's no reason to skip the URL building validation either, only the multilang stuff relies on and requires that the controller be website enabled (and in fact that it be multilang enabled), so only *that* should be gated behind a flag. Also always call super(), there's no reason not to and others might add args to postprocess on base rather than website, ending up after website in the MRO.
Loading
Please register or sign in to comment